JSON Parser
Parse (decode, deserialize) JSON into a readable tree.
Tree view
JSON Parser Online – Decode and Deserialize JSON
The JSON parser decodes JSON text into a structure you can actually read. Paste JSON — or a JSON string full of " escapes copied from a log — and the parser deserializes it into an interactive tree with types, item counts, and copyable paths.
JSON decode, deserialize, parse: one thing
These terms all describe the same step. JSON decode is common in PHP (json_decode), deserialize in Java, C#, and Go, and parse in JavaScript (JSON.parse). Each turns a string of JSON text into native objects, arrays, strings, numbers, booleans, and nulls. This tool shows you exactly what your program would get after that step.
Handles stringified JSON
Messages from queues, webhooks stored in databases, and structured log lines often contain JSON that was encoded as a string — sometimes twice. Normally you would need to call JSON.parse repeatedly. The parser detects these wrapped strings and unwraps them automatically, so the tree shows the real data inside.
What you see
- A collapsible tree with color-coded value types.
- Counts for every object
{n}and array[n]. - Click any node for its JSONPath, type, and value, with copy buttons.
- Validation with line and column for syntax errors, plus overall statistics (objects, arrays, keys, depth).
Parsing in code
const data = JSON.parse(text); // JavaScript
$data = json_decode($text, true); // PHP
data = json.loads(text) # Python
Related tools
Go the other way with JSON Stringify, unwrap escaped strings to text with Unstringify JSON, or search the result in the JSON Navigator.
Frequently Asked Questions
What's the difference between parsing and stringifying JSON?
Parsing (decoding, deserializing) turns JSON text into a data structure — objects, arrays, and values you can navigate. Stringifying (encoding, serializing) does the opposite and turns data into JSON text. JavaScript's JSON.parse and JSON.stringify are the standard functions for each direction.
Can it parse JSON that is wrapped in a string?
Yes. Log files and message queues often contain JSON that was stringified once or even twice, full of \" escapes. The parser unwraps such strings automatically before building the tree.
Why does parsing fail with 'Unexpected token'?
The text isn't valid JSON. Typical causes are single quotes, trailing commas, comments, or a truncated document. The error shows the line and column; the JSON Fixer can repair most of these problems.
Is the parser safe for sensitive data?
Yes. It uses the browser's built-in JSON parser and runs locally; nothing is uploaded or logged.