A little context.
Validates JSON and adds two-space indentation. Object key order is preserved; comments and trailing commas are not valid JSON.
Inspecting a nested response
Format a response before following its object keys and array positions. For example, an array of products is structurally different from an object keyed by product ID, even if both contain the same labels.
Interpreting the result and avoiding mistakes
Formatting does not sort keys or validate required fields. Parsing numbers follows JavaScript precision, so very long numeric identifiers should be supplied as strings. Keep an untouched source copy when investigating precision-sensitive data.
A reproducible workspace example
These are the starting values in the form above. The result below is calculated from these values when the page is built, using the same processing engine as the tool.
- JSON
{"name":"Utilo","tools":[1,2,3]}
Calculated output
{
"name": "Utilo",
"tools": [
1,
2,
3
]
}Reference: RFC 8259: JSON syntax.
Quick reference
{"a":1} becomes indented JSONHow to use this tool
- Enter json in the workspace above.
- Select Run tool to process your input. Invalid values produce a message next to the form.
- Copy the result or download it as a file. Reset example restores the original input.