ExamineJSONMembers()
Syntax
Result = ExamineJSONMembers(JSONValue)Description
Starts to examine the members of a JSON value of type #PB_JSON_Object. The individual members can be examined with the NextJSONMember(), JSONMemberKey() and JSONMemberValue() functions.
Parameters
JSONValue The JSON value to examine. The value must be of type #PB_JSON_Object.
Return value
Returns nonzero if the object can be enumerated or zero if there was an error.
Example
Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " + Chr(34) + "y" + Chr(34) + ": 20, " + Chr(34) + "z" + Chr(34) + ": 30 }" ParseJSON(0, Input$) ObjectValue = JSONValue(0) If ExamineJSONMembers(ObjectValue) While NextJSONMember(ObjectValue) Debug JSONMemberKey(ObjectValue) + " = " + GetJSONInteger(JSONMemberValue(ObjectValue)) Wend EndIf
See Also
NextJSONMember(), JSONMemberKey(), JSONMemberValue(), GetJSONMember(), SetJSONObject(), JSONType()
Supported OS
All