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
If I try to call Set on an array jsonparser always replaces the first element of the array, regardless of the index passed
Set
myJSON := []byte(`{}`) myJSON, _ = jsonparser.Set(myJSON, []byte("1"), "test", "[0]") myJSON, _ = jsonparser.Set(myJSON, []byte("2"), "test", "[1]") myJSON, _ = jsonparser.Set(myJSON, []byte("3"), "test", "[2]") fmt.Println(string(myJSON))
Expected output
{"test":[1,2,3]}
Actual output
{"test":[3]}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the problem
If I try to call
Set
on an array jsonparser always replaces the first element of the array, regardless of the index passedHow to replicate
Expected output
Actual output
The text was updated successfully, but these errors were encountered: