JSON Pointer is a string syntax which acts as the pointer to a target location within a JSON document. The format is defined by RFC 6901 and contains reference tokens prefixed with a (/) character. The path used is an absolute path, so you can't use relative references.
Consider the following example issues.json document which holds a JSON array of issue objects:
[ { "id": 1122, "name": "Fix slow loading" }, { "id": 2003, "name": "Raise alert on failure" }, { "id": 1903, "name": "Reponsive home page" }]
The following table shows the pointer value used and the target value at the specified location that is referenced:
/1 |
{"id":2003,"name":"Raise alert on failure"} |
/1/id |
2003 |
/0/name |
Fix slow loading ... |