jsonGetValue (Function) |
Top Previous Next |
jsonGetValue reads a JSON object or array from the provided JSON object or array.
When working on a JSON object, set the key parameter to the name of the value to get. When working on a JSON array, idx must be set to the index of the element to get.
Input: o : SYSHANDLE A handle to the JSON array or object to work on.
idx : INT (Default -1) Index to use when working on a JSON array.
key : STRING The name of the value when working on a JSON object.
Output: value : SYSHANDLE The value of the element. Must be freed with jsonFree when no longer needed.
Returns: INT
Declaration: FUNCTION jsonGetValue : INT;
Example: INCLUDE rtcu.inc
|