Invalid JSON Examples
Short examples are often the fastest way to understand what makes JSON invalid.
Compare the broken snippet, read the reason it fails, then apply the corrected structure to your real payload.
Example: trailing comma
This object fails because the final property is followed by a comma.
{
"name": "StructKit",
"cluster": "json-tools",
}Example: unquoted key
Object keys must be wrapped in double quotes.
{
name: "StructKit"
}Example: missing closing brace
A valid JSON structure must close every object and array that it opens.
{
"items": [1, 2, 3]
Corrected pattern
{
"name": "StructKit",
"cluster": "json-tools",
"items": [1, 2, 3]
}