How it works
Parses the input with the browser’s JSON parser and serializes the value with two-space indentation.
JSON.parse(input)
JSON.stringify(value, null, 2)
Interpretation
Read the result summary first, then inspect the detailed output and any errors or warnings. The result describes the supplied input and selected options. Changing input requires another run.
Assumptions & warnings
JavaScript parsing can change the precision of large numbers and keeps the last value for duplicate object keys. Keep the original source when either detail matters.
Inputs are processed in your browser. Follow the input format and size limits shown next to the controls.
Try an example
Select Load example in the input panel, review the selected mode, then use its displayed primary action. Inspect the result before replacing the sample with your own input.