Json file is plain text. You can make use if static methods in
File
class read/write data to it. You may choose
Stream
if files are huge.
Note that with these methods, you will need to ensure that you are using correct JSON format.
Alternatively,
-> you can read the JSON, deserialize it into an object.
-> Create more objects of same class or change data in existing object.
-> Serialize objects to json
-> Overwrite/append the file as per your need