You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add the possibility to set the value for each element in the array like this: jsonparser.Set(jsonBody, []byte("\"\""), "issuesData", "issues", "[]", "extraFields", "[]", "html")
I am looking for the same, which allows to replace some entry in array on the fly. My app just receives json data from server as following and want to modify it in place:
"content":
...
"list": [
{
"name": "abc",
...
},
{
"name": "xyz",
...
}
...
]
I can get the name from array, with the follow code snippet. If I dump the return byte slice val, it looks Set has taken effect but I can't set it back to the original slice (body). Any suggestion? Thanks
Hello!
Would it be possible to add the possibility to set the value for each element in the array like this:
jsonparser.Set(jsonBody, []byte("\"\""), "issuesData", "issues", "[]", "extraFields", "[]", "html")Thanks in advance,
Nighthawk