About the JSON Deserialize
Deserialize JSON (including stringified JSON) and inspect the resulting object: every field with its type and value, in a readable outline.
Key features
- Outline of every field with its type and value
- Shows object key counts and array lengths
- Unwraps stringified and escaped JSON automatically
- Indented view mirrors the data's structure
- Great for checking types before writing models
- Private, in-browser processing
Inspect JSON the way your code will see it
Before you write a model class, a TypeScript interface or a database schema, you need to know exactly what the data looks like: which fields exist, what types they are, which are null, and how deep the nesting goes. JSON Deserialize parses your JSON (even if it's escaped or stringified) and prints an outline of every field with its type and value.
Example
{"id":42,"name":"Ada","tags":["math"],"manager":null,"address":{"city":"London"}}
root: Object {5 keys}
id: number = 42
name: string = "Ada"
tags: Array(1)
[0]: string = "math"
manager: null = null
address: Object {1 keys}
city: string = "London"
Type mapping reference
| JSON type | C# | Java | TypeScript | Python |
|---|---|---|---|---|
| string | string | String | string | str |
| number (whole) | int / long | int / long | number | int |
| number (decimal) | double / decimal | double | number | float |
| boolean | bool | boolean | boolean | bool |
| null | T? | wrapper type | T | null | None |
| array | List<T> | List<T> | T[] | list |
| object | class | POJO | interface | dict / dataclass |
Debugging deserialization errors
- "Cannot convert String to Int32": a number arrived quoted (
"42"). Check the outline forstring = "42". - "Cannot deserialize array into object": the field is an array in the data but an object in your model, or vice versa.
- Null reference / missing field: the outline shows
nullor the key is simply absent. - Date problems: JSON has no date type; dates arrive as strings (ISO 8601) or numbers (Unix timestamps).
Related tools
Generate code with JSON to Java or JSON to Protobuf. Explore interactively with the JSON Viewer. Turn objects back into strings with JSON Serialize.
How to use the JSON Deserialize
- Paste your data into the input box, upload a file, or click Sample to try it out.
- Adjust the options above the editor if you need to (indentation, delimiter, and so on).
- The result appears instantly in the output panel. Any errors are shown with their line and column.
- Click Copy to copy the result, or Download to save it as a file.