Inspect nested structure
Searchable tree and raw editor views make nested objects, arrays, keys, values, and record boundaries easier to inspect.
Open or paste JSON, inspect its structure, edit, format or minify it. Your contents stay in this browser.
Start with a complete JSON value. Contents stay in this browser.
File contents stay in this browser. Download changes before refreshing or closing the tab.
Searchable tree and raw editor views make nested objects, arrays, keys, values, and record boundaries easier to inspect.
Open Query & transform, enter a JSONata expression such as items[qty > 1].name, then choose Preview query. Review the complete result before downloading a separate copy or explicitly replacing the source; Undo restores the source. Syntax problems are reported without sending the document to a server.
Use JSON for one complete value, JSONL or NDJSON for one JSON value per line.
For a repeatable workflow, run a local script or command. Choose an example below for setup, code and output details.
The pointer /service/name selects the name inside service. Tilde escapes follow RFC 6901.
import json
from pathlib import Path
value = json.loads(Path("input.json").read_text(encoding="utf-8"))
pointer = "/service/name"
for part in pointer.split("/")[1:]:
token = part.replace("~1", "/").replace("~0", "~")
if isinstance(value, list):
if not token.isascii() or not token.isdigit() or (len(token) > 1 and token.startswith("0")):
raise ValueError("Expected a non-negative array index without leading zeros")
value = value[int(token)]
else:
value = value[token]
print(json.dumps(value, ensure_ascii=False, allow_nan=False))Documentation: Python JSON documentation
For {"items":[{"name":"Small","qty":1},{"name":"Large","qty":2}]}, open Query & transform, enter items[qty > 1].name and choose Preview query. The result is "Large". Review it before downloading a separate result copy or choosing Replace document with result. Preview and copying do not replace the source; replacement is one undoable edit, and saving is separate.
Open Query & transform to select, filter and preview a local result before explicit replacement; Undo restores the source. Numeric values and text casts have precision limits. Arithmetic requires provable safe integer intermediates and supports at most 100,000 input values/containers: decimal arithmetic, unknown function contexts and unbounded calculations are refused. Aggregates check their subtotals; nonintegral averages and division are unavailable. Decimal selection and comparisons remain available. This is a restricted query tool, not an arbitrary-precision calculation engine.
When this task is available for the configured destination, open Query & transform and expand Draft a query with assistance. Prepare a JSON Pointer's observed field metadata, review it and explicitly include it. Optional exact sample values require separate preparation and inclusion; current expression text is also optional. The exact request preview shows what will be sent. Metadata covers direct fields and at most three selected array items, not a complete schema. Local draft checks parse JSONata and reject unsafe numeric literals and $eval without evaluating the query. Use reviewed JSONata draft changes only expression text; Preview query runs it separately with the existing source-dependent precision and arithmetic guards. Results and model explanations remain unverified until the relevant separate checks. Cancelling or stale source/query/model context cannot replace manual query text. Unconfigured tasks stay unavailable; source files, paths, grants and local schema/reference resources are not attached automatically.
Yes. Use Tree and an RFC 6901 JSON Pointer such as /items/0/name for an exact source path. Pointer lookup and Query & transform are separate tools; a pointer does not filter or calculate a new result.
Local editing processes selected and pasted contents in your browser. Optional Assistance sends your goal and only the context you explicitly prepare and include, such as a selected subtree or observed query field metadata, to OpenRouter and the configured model provider. Its preview shows exactly what is included. Ordinary page and asset requests also reach the hosting provider.