there is such a json, it is in the settings.json file
{ "settings" : { "pathDownloads" : "", "pathFolder" : { "archive" : "", "music" : "", "android" : "", "web" : "", "images" : "" } } } It is necessary to read it in jsonObject, well, and there to change, add a new one and write the modified json back to the file.
The problem itself: read and write json file revised many examples, m. is there any library?