JSON Formatter / GUIDE
Read nested JSON objects and arrays
Read nested JSON by separating objects, arrays and individual values, then follow one complete record before reviewing the entire document.
Identify the outer structure
An object groups named properties inside braces. An array stores an ordered sequence inside square brackets. A response may contain an object with a products array, and each product may contain its own variants array. Indentation helps reveal these levels.
Follow one record
Choose one item and trace its fields from the outside inward. Check whether a value is text, a number, a boolean, null or another structure. An empty array and a missing property are not interchangeable assumptions; the consuming application decides how each is interpreted.
Compare similar records
After understanding one item, compare it with another. Look for missing fields or unexpectedly different types. Use the formatter to make the comparison easier, but preserve the source data. Changing structure to make it look consistent can break an integration if the original differences were intentional.
Before you finish
- Identify objects and arrays.
- Trace one complete record.
- Review type differences deliberately.