ClearJSONMembers()
Syntax
ClearJSONMembers(JSONValue)Description
Remove all object members from a JSON value of type #PB_JSON_Object.
Parameters
JSONValue The JSON value. The value must be of type #PB_JSON_Object.
Return value
None.
Example
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)
See Also
SetJSONObject(), AddJSONMember(), RemoveJSONMember(), GetJSONMember(), ExamineJSONMembers(), JSONObjectSize(), JSONType()
Supported OS
All