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 {} (a simple example might : "object test":{"name" : "John", "age" : 30, "car" : null}. If found, the function returns the number and names of elements.
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 |
1 |
Integer |
Object Size |
|
2 |
String Ref List |
Object Items |
|
SUCCESS |
The file was parsed successfully. |
FAILURE |
The File or Pointer could not be found. |
The MP command will return a list of items - type, id, attributes, relationships, files and links. Not all JSON file is as simple. therefore this command can be used to build a list. Then for each name returned, you can concatanate the JSON pointer, and use Get JSON * to access the information.