I am building a web-application (using Javascript/jQuery) that generates JSON configuration files.
At the end the applications should convert the generated JSON to a string so that it can be copied by the user?
At the moment I am doing a simple JSON.stringify()
, but this adds quotation to both keys and values. In order to get the configuration files to work it is necessary that the keys are exported without quotes (unless stated).
For example, "id": "ezdzdz"
should be printed as id: "ezdzdz"
unless its actually written as "id" in the JSON.
Thanks, all help is much appreciated!