aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2022-09-04 23:28:55 +0100
committerRichard <q@1bpm.net>2022-09-04 23:28:55 +0100
commit16ec769fd0246ec446ad13903c1701d5becb545e (patch)
tree95faa812d8ba4526eae4c7607c0e7b9028ad07e7 /README.md
parentbe702a2cf8b098eec5cc989b00538e5c4df91c52 (diff)
downloadcsound-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.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index f59c453..f62d016 100644
--- a/README.md
+++ b/README.md
@@ -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*.