Replace item at given index in JSON array by value.
Declaration
%JSON_ArraySetValue(
INT in handle,
INT in index,
UNIVAL in value
)
Parameters
handle
Handle to parent JSON array.
index
Index
value
New value
Return value
None
Description
Function replace item at given index in JSON array by value. Supported types are BOOL, INT, REAL, TEXT and invalid value. If you want to insert TIME, first you have to convert it to TEXT.
Exception is thrown if handle to parent JSON array is invalid, new value have unsupported type or index is out of range.