We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi Folks. The processing generated documentation suggested that saveJSONArray() and saveJSONobject() can have options passed into them (public boolean saveJSONArray(JSONArray json, String filename, String options) What are the possible options here, and specifically, is there a way to instruct it to append to an existing file, rather than overwrite?
thanks Jim
Answers
According to source code, the options are just ignored. Perhaps they are these for future extension?
If you append a Json string to an existing file, the resulting file won't be a valid Json structure...
Anyway, you can use classical append-to-file methods with json.toString(), for example.