| Operators |
json_pointer — Uses a JSON Pointer to extract a value from a JSON string.
json_pointer uses a JSON Pointer to extract a value from a JSON string.
Further information about JSON pointers are available in the document RFC 6901 / JavaScript Object Notation (JSON) Pointer.
In contrast to queries with XPath as known from XML documents JSON pointers are restricted but also easy to use.
This example JSON data:
{
"key1": "value1",
"key2": {
"c": 42,
"b": [
43,
44
]
}
}
can be accessed with JSON pointers as follows:
/key1 -> 'value1' /key2/b/0 -> 43 /key2/c -> 42
Find more information about the JSON extension package in the introduction to this chapter.
JSON string
JSON Pointer
value
Foundation
| Operators |