JSONArraySize()

Syntax

Result = JSONArraySize(JSONValue)
Description
Returns the number of elements in a JSON value of type #PB_JSON_Array.

Parameters

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

Return value

The number of elements in the JSON array.

Example

  ParseJSON(0, "[1, 2, null, true]")
  Debug JSONArraySize(JSONValue(0))

See Also

SetJSONArray(), AddJSONElement(), RemoveJSONElement(), ResizeJSONElements(), ClearJSONElements(), GetJSONElement(), JSONType()

Supported OS

All

<- IsJSON() - Json Index - JSONErrorLine() ->