JSON pointer list
json-pointer-list · version 1.0.0 · JSON & JSONL · free, no key needed
List RFC 6901 pointers to every reachable JSON node, root first.
Use when you need to: json pointer list · list json pointers · enumerate json pointers.
Supported
- json pointer list
- list json pointers
- enumerate json pointers
Not supported
- json path
- regex
- prototype walk
Behavior
- Accept only JSON values: null, boolean, finite number, string, array, and plain objects.
- Reject NaN, Infinity, -Infinity, undefined, BigInt, functions, symbols, Date, Map, Set, RegExp, boxed primitives, Buffer, and sparse holes.
- Canonicalize -0 to 0.
- Objects may have null or Object.prototype; use own enumerable string keys only.
- Treat __proto__, constructor, and toString as ordinary own keys. Never mutate Object.prototype.
- Output objects must be Object.create(null). Deep-clone all returned JSON values.
- Bound walk: max depth 32, max nodes 10000, max UTF-8 JSON bytes 250KiB of the input document string if provided as text; when json is already a value, bound the walked node count and depth.
- Preorder walk: emit the pointer for the current node, then object keys in lexicographic UTF-16 order, then array indexes 0..n-1.
- Root pointer is "". Object key tokens are escaped (~ -> ~0, / -> ~1).
- Include both intermediate and leaf nodes. Max 10000 pointers (same as node bound).
Input
json(any JSON value, required)
Output
pointers(array of string, required): max items 10000
Limits
- max json depth: 32
- max json nodes: 10000
Example
Request input:
{
"json": {
"b": 1,
"a": [
false
]
}
}
Response:
{
"result": {
"pointers": [
"",
"/a",
"/a/0",
"/b"
]
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "json-pointer-list",
"version": "1.0.0",
"input": {
"json": {
"b": 1,
"a": [
false
]
}
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/json-pointer-list/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"json":{"b":1,"a":[false]}}'
The machine-readable contract is at /v1/tools/json-pointer-list/versions/1.0.0.
CLI
node cli.mjs run json-pointer-list 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- JSON flatten: Flatten a JSON value into a null-prototype map keyed by RFC 6901 JSON Pointers.
- JSON unflatten: Reconstruct a JSON value from a map of RFC 6901 JSON Pointers to leaves.
- JSON omit pointers: Deep-clone JSON and delete values at explicit RFC 6901 pointers.
- JSON pick pointers: Pick cloned JSON values at explicit RFC 6901 pointers into a null-prototype map.
- JSON pointer get: Return the cloned JSON value at an RFC 6901 pointer.
- JSON pointer has: Return whether an RFC 6901 pointer exists as an own path.