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
Desired results: [{"id":"1","name":"test"}]
Results obtained now: [{"id":"1","name":"test"},{"id":"1","name":"test"}]
code
jsonArray := gabs.New() jsonArray.Set("1", "id") jsonArray.Set("test", "name") jsonArray.ArrayAppend(jsonArray.Data())
No relevant information was found. Please share a solution
The text was updated successfully, but these errors were encountered:
mainObj := gabs.New()
subObj := gabs.New() subObj.Set("1", "id") subObj.Set("test", "name")
mainObj.Array() mainObj.ArrayAppend(subObj.Data())
Sorry, something went wrong.
mainObj := gabs.New() subObj := gabs.New() subObj.Set("1", "id") subObj.Set("test", "name") mainObj.ArrayAppend(subObj.Data())
mainObj.ArrayAppend(subObj.Data())
Use the method you said to execute the results :[{},{"id":"1","name":"test"}] More {},Is there a way to remove it
mainObj := gabs.New() subObj := gabs.New() subObj.Set("1", "id") subObj.Set("test", "name") mainObj.ArrayAppend(subObj.Data()) Use the method you said to execute the results :[{},{"id":"1","name":"test"}] More {},Is there a way to remove it
I forgot the .Array() Example has been updated.
No branches or pull requests
Desired results:
[{"id":"1","name":"test"}]
Results obtained now:
[{"id":"1","name":"test"},{"id":"1","name":"test"}]
code
jsonArray := gabs.New() jsonArray.Set("1", "id") jsonArray.Set("test", "name") jsonArray.ArrayAppend(jsonArray.Data())
No relevant information was found. Please share a solution
The text was updated successfully, but these errors were encountered: