[ [ "/a/b", 2 ] ]
Use the inputs above for your own values. The result follows the method and assumptions shown below.
How it works
Walk the JSON tree and return leaf entries as [JSON Pointer, value] pairs. Escape ~ as ~0 and / as ~1 in pointer segments.
Input definitions
- JSON
- Plain text; maximum 200,000 characters.
A worked example
- JSON
- {"a":{"b":2}}
Assumptions & limits
Empty arrays/objects remain leaf values; root pointer is the empty string. Maximum 10,000 nodes, depth 50; number precision follows JavaScript.
Sources & review
Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.
Method updated 2026-11-18. Reviewed against the stated method and example. Our verification approach.
Report an issue with this tool or suggest an improvement ↗
Common questions
How are slash characters in JSON keys handled?
The output uses JSON Pointer escaping: ~ becomes ~0 and / becomes ~1. Arrays use index segments, and an empty pointer refers to the root value.
Does this tool execute the code or data I paste?
Inputs are treated as data under the stated parser or transformation. Output is displayed as text. Parsing or formatting does not establish that the content is safe to execute elsewhere.
How does the Flatten JSON to pointer entries tool work?
Walk the JSON tree and return leaf entries as [JSON Pointer, value] pairs. Escape ~ as ~0 and / as ~1 in pointer segments.
What are the assumptions and limits of Flatten JSON to pointer entries?
Empty arrays/objects remain leaf values; root pointer is the empty string. Maximum 10,000 nodes, depth 50; number precision follows JavaScript.