Skip to main content

Pretty-print a compact inventory response

Read a one-line API fixture during a code review.

Set up the example

Paste the compact JSON and apply indentation. Compare the first sku and the last zone before and after formatting.

Check the result

The result should still parse as an array of three objects. A17 and East should still refer to the same records as before.

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 Diff · Browse all file tasks