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.
Open JSON, JSONL or NDJSON to inspect and edit. 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.
Pretty-print or minify a complete JSON value, then download the validated result. 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.
Run these alternatives on your own computer. Keep the original file and write changes to a separate output. These tools have their own parsing and precision rules; their output need not match this website exactly.
Shows the root type, up to twenty object keys or the first five array items. Display is bounded but parsing loads the complete file.
import json
from pathlib import Path
data = json.loads(Path("input.json").read_text(encoding="utf-8"))
print("Root type:", type(data).__name__)
if isinstance(data, dict):
print("Keys:", list(data)[:20])
elif isinstance(data, list):
print("Items:", len(data))
for item in data[:5]:
print(json.dumps(item, ensure_ascii=False))
else:
print(data)Documentation: Python JSON documentation
The second command requires an object or array and prints property names or indices.
jq 'type' input.json
jq 'keys' input.jsonDocumentation: jq manual and installation
Choose or drop a .json file, paste a complete JSON value, or try the sample. The editor opens with your input ready for Source, Tree or Table inspection.
Yes. Edit the source or structure, review validation feedback, then download your edited JSON. Save a download before refreshing or closing the tab.
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.