Get JSON Object Value

The command is using JSON Pointer to locate the specified JSON object. A JSON object is typically used to contain key/value pairs and is enclosed within {}. If found, the function returns the number and names of elements.

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

Object Size

 

2

String Ref List

Object Items

 

 

Returned Status

 

SUCCESS

The file was parsed successfully.

FAILURE

The File or Pointer could not be found.

 

Remarks

The MP command will return a list of items - type, id, attributes, relationships, and links.