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
- Paste the sample object with item, stock and active.
- Format it and compare each displayed entry with the source.
- 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.