JSONObjectSize()

语法

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

参数

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

返回值

The number of members in the JSON object.

示例

  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))

参阅

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

已支持操作系统

所有

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