aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2022-09-22 15:17:08 +0100
committerRichard Knight <q@1bpm.net>2022-09-22 15:17:08 +0100
commitb60bcda728f7bce9e5753aa20e59b29a4479aab8 (patch)
treeb5a7050604254ca8f77591acf7884081c3fe7881 /README.md
parent6258a82af556285658a542876175b04039cd2707 (diff)
downloadcsound-json-1.3.tar.gz
csound-json-1.3.tar.bz2
csound-json-1.3.zip
added jsonptrval and jsonptrarr opcodes; fix of jsonptraddHEADv1.3master
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 40 insertions, 1 deletions
diff --git a/README.md b/README.md
index a6a5742..646ea06 100644
--- a/README.md
+++ b/README.md
@@ -224,7 +224,7 @@ Get a numeric or string value from an object by string key or numeric index.
* **index** index for accessing an array
-## jsongetvalk
+### jsongetvalk
Get a numeric or string value from an object by string key or numeric index, at k-rate.
Svalue jsongetvalk iJson, Skey
@@ -278,6 +278,45 @@ Perform a JSON Pointer query and obtain the resulting JSON object handle.
* **Spointer** JSON Pointer expression
+### jsonptrval
+Use a JSON Pointer query to obtain a string/numeric value, or an array of string/numeric.
+
+ ivalue jsonptrval iJson, Spointer
+ Svalue jsonptrval iJson, Spointer
+ ivalues[] jsonptrval iJson, Spointer
+ Svalues[] jsonptrval iJson, Spointer
+* **ivalue** numeric output value
+* **Svalue** string output value
+* **ivalues[]** numeric array output values
+* **Svalues[]** string array output values
+* **iJson** JSON object handle to evaluate
+* **Spointer** JSON Pointer expression
+
+
+### jsonptrvalk
+Use a JSON Pointer query to obtain a string/numeric value, or an array of string/numeric, at k-rate.
+
+ kvalue jsonptrvalk iJson, Spointer
+ Svalue jsonptrvalk iJson, Spointer
+ kvalues[] jsonptrvalk iJson, Spointer
+ Svalues[] jsonptrvalk iJson, Spointer
+* **kvalue** numeric output value
+* **Svalue** string output value
+* **kvalues[]** numeric array output values
+* **Svalues[]** string array output values
+* **iJson** JSON object handle to evaluate
+* **Spointer** JSON Pointer expression
+
+
+### jsonptrarr
+Get an array of JSON object handles from a JSON Pointer query.
+
+ iJsonObjects[] jsonptrarr iJson, Spointer
+* **iJsonObjects[]** array of JSON object handles
+* **iJson** JSON object handle to evaluate
+* **Spointer** JSON Pointer expression
+
+
### jsonptrhas
Check if a JSON Pointer query results in a valid existing object.