SetJSONArray()
Syntax
SetJSONArray(JSONValue)Description
Change the type of the JSON value to #PB_JSON_Array. The array will have no elements (even if the value previously contained array elements).
Parameters
JSONValue The JSON value.
Return value
None.
Example
If CreateJSON(0) ArrayValue = SetJSONArray(JSONValue(0)) SetJSONString(AddJSONElement(ArrayValue), "hello") SetJSONString(AddJSONElement(ArrayValue), "world") Debug ComposeJSON(0) EndIf
See Also
AddJSONElement(), RemoveJSONElement(), ResizeJSONElements(), ClearJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()
Supported OS
All