ClearJSONElements()
语法
ClearJSONElements(JSONValue)概要
Remove all array elements from a JSON value of type #PB_JSON_Array.
参数
JSONValue The JSON value. The value must be of type #PB_JSON_Array.
返回值
无.
示例
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)
参阅
SetJSONArray(), AddJSONElement(), RemoveJSONElement(), ResizeJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()
已支持操作系统
所有