How to inspect JSON before sharing a data example
When a JSON example fails to load, inspect its structure before changing the application that consumes it. First remove any credentials, tokens, personal records, and private endpoints from the example you plan to share. Work with the smallest sample that still reproduces the problem.
Format the text to make nested objects and arrays visible. Check for a missing comma between properties, an unclosed brace, a trailing comma, or a string surrounded by single quotes. JSON property names and string values use double quotes. Distinguish the number 12 from the string "12" when checking the expected schema.
Formatting and schema validation answer different questions. A document can be syntactically valid while still omitting a field that your application requires. Once parsing succeeds, compare the types and required properties with the receiving application's specification.
PeekTool includes a JSON Formatter that can beautify, minify, and validate JSON with parsing feedback. This note was prepared for PeekTool to demonstrate a small debugging workflow. Use a sanitized example when trying any online development tool.