jsonGetInt (Function) |
Top Previous Next |
jsonGetInt reads an integer 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 : DINT The value of the element.
Returns: INT
Declaration: FUNCTION jsonGetInt : INT;
Example: INCLUDE rtcu.inc
|