jsonSetValueFloat (Function) |
Top Previous Next |
jsonSetValueFloat stores the provided floating point value in a JSON object or array.
When working on a JSON object, set the key parameter to the name of the value to set. When working on a JSON array, idx must be set to the index of the element to set, and the insert parameter can be used to control if it should replace the existing element.
Input: o : SYSHANDLE A handle to the JSON array or object to set the value on.
idx : INT (Default -1) Index to use when working on a JSON array. Leave at -1 when working on a JSON object.
key : STRING The name of the value when working on a JSON object.
insert : BOOL (Default FALSE) When FALSE, the existing value at the given position in the array will be replaced. Set to TRUE to insert the value in the array at the given position and shift the elements after it one position towards the end.
value : DOUBLE The value to add.
Returns: INT
Declaration: FUNCTION jsonSetValueFloat : INT;
Example: INCLUDE rtcu.inc
|