✓ Valid JSON
Your JSON is properly formatted and valid!
Type
-
Size
-
Keys/Items
-
Max Depth
-
✗ Invalid JSON
Your JSON contains errors:
Position:
Common Fixes:
- Check for missing or extra commas
- Ensure all strings use double quotes (not single quotes)
- Verify all brackets and braces are properly closed
- Remove trailing commas after last items
- Check for special characters that need escaping
What is JSON?
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It's easy for humans to read and write, and easy for machines to parse and generate.
JSON Structure:
- Objects: Unordered collection of key-value pairs:
{"key": "value"} - Arrays: Ordered list of values:
[1, 2, 3] - Values: String, number, boolean, null, object, or array
Common JSON Errors
❌ Single Quotes
{'name': 'John'}
Use double quotes for strings
✓ Correct
{"name": "John"}
Double quotes required
❌ Trailing Comma
{"name": "John",}
No comma after last item
✓ Correct
{"name": "John"}
No trailing comma