I need a help.
I have JSON with data:
{
"Tomy":[
{
"name":"Tomy",
"age":25
}]
}
In my app, I need to add new persons and save to JSON.
How do I need to insert a new person to the last position in JSON?
Example what I want to get::
{
"Tomy":[
{
"name":"Tomy",
"age":25
}],
"Boby":[
{
"name":"Boby",
"age:38
}]
}
Please help explain how to work with JSON. Or indicate the direction.