ClearJSONMembers()
语法
ClearJSONMembers(JSONValue)概要
Remove all object members from a JSON value of type #PB_JSON_Object.
参数
JSONValue The JSON value. The value must be of type #PB_JSON_Object.
返回值
无.
示例
Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " + Chr(34) + "y" + Chr(34) + ": 20 }" Debug Input$ ParseJSON(0, Input$) ; clear the members and add a new one ClearJSONMembers(JSONValue(0)) SetJSONString(AddJSONMember(JSONValue(0), "Hello"), "World") Debug ComposeJSON(0)
参阅
SetJSONObject(), AddJSONMember(), RemoveJSONMember(), GetJSONMember(), ExamineJSONMembers(), JSONObjectSize(), JSONType()
已支持操作系统
所有