diff options
author | Richard <q@1bpm.net> | 2022-09-04 23:28:55 +0100 |
---|---|---|
committer | Richard <q@1bpm.net> | 2022-09-04 23:28:55 +0100 |
commit | 16ec769fd0246ec446ad13903c1701d5becb545e (patch) | |
tree | 95faa812d8ba4526eae4c7607c0e7b9028ad07e7 /README.md | |
parent | be702a2cf8b098eec5cc989b00538e5c4df91c52 (diff) | |
download | csound-json-16ec769fd0246ec446ad13903c1701d5becb545e.tar.gz csound-json-16ec769fd0246ec446ad13903c1701d5becb545e.tar.bz2 csound-json-16ec769fd0246ec446ad13903c1701d5becb545e.zip |
added new opcode, updated doc
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -32,6 +32,7 @@ Some examples are provided in the examples directory. ## Opcode reference + ### jsonloads Parse a JSON string and load to an object handle for use in other opcodes. @@ -74,6 +75,7 @@ Output a JSON object handle to a text file. * **Sfile** file path to write serialised object contents to * **ipretty** 1=pretty print with formatting and indenting, 0=raw + ### jsoninit Initialise an empty JSON object (equivalent to `iJson jsonloads "{}"`). @@ -81,6 +83,13 @@ Initialise an empty JSON object (equivalent to `iJson jsonloads "{}"`). * **iJson** new empty object +### jsondestroy +Delete a JSON object and free memory. + + jsondestroy iJson +* **iJson** JSON object handle to destroy + + ### jsonmerge Shallow merge two JSON object handles, from *iJsonSource* into *iJsonTarget*. If *iupdate* = 1, then any existing keys will be altered, otherwise existing keys will not be merged. @@ -289,6 +298,7 @@ Add a value at a location specified by the JSON Pointer expression *Spointer*. * **kvalue** numeric value to add * **Svalue** string value to add + ### jsonptradd Add a JSON object handle to a location specified by the JSON Pointer expression *Spointer*. |