Minified input, formatted output
{"sku":"TL-001","price":19.9,"tags":["label","roll"]}{
"sku": "TL-001",
"price": 19.9,
"tags": [
"label",
"roll"
]
}Pretty-print or minify JSON, with the exact position of any syntax error.
The result will appear here.
Was this tool useful?
JSON that comes out of an API is almost always minified: one line, no spaces, impossible to read. Formatting it adds the indentation and line breaks that let you follow the structure, and minifying it again strips them for transport.
The formatter also acts as a parser. If the document is not valid JSON it cannot be reformatted, so you get the line and column where parsing failed instead of a silent no-op — which is usually the fastest way to find a missing comma or a trailing one.
{"sku":"TL-001","price":19.9,"tags":["label","roll"]}{
"sku": "TL-001",
"price": 19.9,
"tags": [
"label",
"roll"
]
}Check whether a document is valid JSON and get the line, column and reason when it is not.
Turn JSON into well-formed XML with a root element you choose.
Flatten a JSON array into a CSV that opens cleanly in Excel.