JSONObjectSize()

Syntax

Result = JSONObjectSize(JSONValue)
Description
Returns the number of members in a JSON value of type #PB_JSON_Object.

Parameters

JSONValue The JSON value. The value must be of type #PB_JSON_Object.

Return value

The number of members in the JSON object.

Example

  Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " + 
                  Chr(34) + "y" + Chr(34) + ": 20, " + 
                  Chr(34) + "z" + Chr(34) + ": 30 }"
  
  ParseJSON(0, Input$)
  Debug JSONObjectSize(JSONValue(0))

See Also

SetJSONObject(), AddJSONMember(), RemoveJSONMember(), ClearJSONMembers(), GetJSONMember(), ExamineJSONMembers(), JSONType()

Supported OS

All

<- JSONMemberValue() - Json Index - JSONType() ->