Overwrite JSON object without replacing the file completely Android Studio
Basically I am trying to overwrite the following JSON data { "name" : "John Doe", "gender" : "male", "age" : "21" } My goal is to replace only the age. So I am using FileOutputStream like below JSONObject object =…