saveJSONArray options

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

Tagged:

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.

Sign In or Register to comment.