How to use this tool
- Enter json document, json pointer — or (root).
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
The method, explained
Split the pointer on /, decode ~1 as / and ~0 as ~, then traverse only existing own properties. Array indices start at zero. This is JSON Pointer, not JSONPath.
Using json document = {"users":[{"name":"Sam","active":true}]}, json pointer — or (root) = /users/0/name, the result is "Sam". Change these example inputs to match your task; use the method above to check each step.
Understanding your result
Escape a slash as ~1 and a tilde as ~0. The property a/b is selected by /a~1b. Use (root) in this interface for the whole document.
What to keep in mind
Maximum input length is 20,000 characters. Wildcards, filters and recursive descent are not part of JSON Pointer.
Common questions
How do I select a property containing a slash?
Escape a slash as ~1 and a tilde as ~0. The property a/b is selected by /a~1b. Use (root) in this interface for the whole document.
Can I use $.users[*]?
No. That is JSONPath syntax. Use /users/0 for the first item or /users for the complete array.
Methodology maintained by ClarityKit. How these tools are built and checked.