We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data := []byte({ "person": { "name": { "first": "Leonid", "last": "Bugaev", "fullName": "Leonid Bugaev" }, "github": { "handle": "buger", "followers": 109 }, "avatars": [ { "url": "https://avatars1.githubusercontent.com/u/14009?v=3&s=460", "type": "thumbnail" } ] }, "company": { "name": "Acme" } }`)
data := []byte(
x, err := jsonparser.Set(data, []byte("http://github.com"), "person", "avatars", "[0]", "url") if err == nil { log.Println(err.Error()) }
`
The code above gives error: runtime error: invalid memory address or nil pointer dereference
The text was updated successfully, but these errors were encountered:
No branches or pull requests
data := []byte(
{"person": {
"name": {
"first": "Leonid",
"last": "Bugaev",
"fullName": "Leonid Bugaev"
},
"github": {
"handle": "buger",
"followers": 109
},
"avatars": [
{ "url": "https://avatars1.githubusercontent.com/u/14009?v=3&s=460", "type": "thumbnail" }
]
},
"company": {
"name": "Acme"
}
}`)
`
The code above gives error: runtime error: invalid memory address or nil pointer dereference
The text was updated successfully, but these errors were encountered: