JSON Formatter

Lay out a compact JSON object so the stock array and neighboring values are easy to inspect.

Lay out a compact JSON object so the stock array and neighboring values are easy to inspect.

How to use

  1. Paste the sample object with item, stock and active.
  2. Format it and compare each displayed entry with the source.
  3. Try a separate copy containing a trailing comma and check the validation response.

Worked example

Input

{"item":"notebook","stock":[2,0],"active":true}

Expected result

{
  "item": "notebook",
  "stock": [2, 0],
  "active": true
}

Check the result

The formatted object keeps notebook, both stock values 2 and 0, and the boolean true.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies