Skip to main content

Compact a JSON stock fixture for transport

Remove formatting whitespace from a JSON fixture while preserving spaces inside strings.

Set up the example

Minify the indented input and compare its character count with the original.

Check the result

Parse the output and verify the second item is still Pens, blue with a space after the comma.

Run this task

Use your own file or download the practice input below. The checks on this page describe the practice result.

Continue with a related task

Open JSON Validator · Browse all file tasks