I am using Gson in my project and a I have a Json file that's built like this:
{
"123.123.123": {
"port": 1234,
"type": 'c'
},
"124.124.124": {
"port": 1244,
"type": 'f'
}
}
I want to add a record (IP, port, and type) to this file, without rewriting the whole file, how would I do that with Gson?
Similar to this question, and the comment on the answer.