string syntax for identifying a specific value
JSON Pointer is a standard pointer syntax used to access specific values within a JSON document, as defined in RFC 6901.
URI
can be used to point to specific elements within complex nested JSON data.
Stands for “Uniform Resource Identifier,” composed of a scheme, host, and path. JSON Pointer corresponds to the path in a URI.
Uses of JSON Pointer
JSON Pointer navigates object properties and array indexes to access specified values.
You write the path to retrieve or assign (overwrite) values.
JSON requires a key name (token
) to store values. See the sample pointers below.
"/test/json/object/array"
The above sample has four segments (/
), and specifies object properties or array indexes with tokens separated by segments.
Basic Usage
Assume that the JSON loaded into memory has the following content.
{
"sample":{
"object"{
"array":[1,2,3,4],
"name": "aster",
"year": 2024
}
}
}
The syntax of JSON Pointer is very simple.
Please utilize JSON Pointer as a powerful tool to easily manipulate JSON data.