SetJSONArray()
语法
SetJSONArray(JSONValue)概要
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).
参数
JSONValue The JSON value.
返回值
无.
示例
If CreateJSON(0) ArrayValue = SetJSONArray(JSONValue(0)) SetJSONString(AddJSONElement(ArrayValue), "hello") SetJSONString(AddJSONElement(ArrayValue), "world") Debug ComposeJSON(0) EndIf
参阅
AddJSONElement(), RemoveJSONElement(), ResizeJSONElements(), ClearJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()
已支持操作系统
所有