Skip to content

creating a nested JSON Object overwrites all other data in it #2

@notalexandru

Description

@notalexandru

when using the objSet method it and try to add data to a nested JSONObject it overwrites all other data.

For example, if you have this JSON file:

"User 1": {
    "name": "John",
    "age": 27,
    "employer": "meta"
}

and you want to add another attribute to User 1 and you use the setObj method it will overwrite all other attributes and only saves the new one that you want.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions