Check a JSON payload before sending it
Locate common syntax problems and inspect the structure before adding data to a request.
Check the complete document
Try {"items":[1,2,], "id":"00042"}. The comma after 2 is invalid. Delete that comma to get {"items":[1,2], "id":"00042"}. The validator should report a valid JSON object.
Open JSON validator →Inspect value types and identifiers
Format the corrected document and read its keys and values. Here items contains numbers and id is a string. Keep the quotes around "00042" to preserve its leading zeros. Check the receiving API documentation for required keys and types.
Open JSON formatter →Compact the document for a single-line field
Paste the corrected object into the minifier. The line breaks and indentation disappear while whitespace inside strings stays intact. Leave machine-generated high-precision numeric identifiers in their original document, or store those identifiers as strings before parsing.
Open JSON minifier →