Code formatter
Pretty-print, minify and validate JSON, XML and SQL
0 chars
0 chars
What this does to JSON
- Values are parsed into JavaScript ones and written back out, so numbers beyond a double's precision (integers over 2^53, long decimals) are rewritten to the nearest double. The tool says so when it spots one.
- Member order survives, except for keys that look like array indices — JavaScript sorts those numerically ahead of everything else and nothing here can prevent it.
- Only RFC 8259 JSON is accepted. Comments, trailing commas, single quotes and unquoted keys are reported as errors, with a hint about which of them it looks like.