diff options
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*. |