ClearJSONElements()
Syntax
ClearJSONElements(JSONValue)Description
Remove all array elements from a JSON value of type #PB_JSON_Array.
Parameters
JSONValue The JSON value. The value must be of type #PB_JSON_Array.
Return value
None.
Example
ParseJSON(0, "[1, 2, 3, 4]") ; clear the values and add a new string ClearJSONElements(JSONValue(0)) SetJSONString(AddJSONElement(JSONValue(0)), "Hello") Debug ComposeJSON(0)
See Also
SetJSONArray(), AddJSONElement(), RemoveJSONElement(), ResizeJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()
Supported OS
All