From b60bcda728f7bce9e5753aa20e59b29a4479aab8 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Thu, 22 Sep 2022 15:17:08 +0100 Subject: added jsonptrval and jsonptrarr opcodes; fix of jsonptradd --- README.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'README.md') 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. -- cgit v1.2.3