Get JSON Array Size

The command is using JSON Pointer to locate the specified JSON array. A JSON array contains zero, one, or more ordered elements, separated by a comma. The JSON array is surrounded by square brackets [ ].

Input Arguments

 

0

Integer

JSON File Handle

The handle to the opened JSON file is returned by the “Open JSON File” MP command.

1

String

JSON Pointer

JSON pointer to the desired JSON element. For

example, /data/2/attributes/X

 

Return Arguments

 

1

Integer

Array Size

Returns a JSON array size.

 

Returned Status

 

SUCCESS

The file was parsed successfully.

FAILURE

The File or Pointer could not be found.

 

Remarks

None.