JSON Formatting

Which json script is properly formatted?

Properly formatted JSON follows strict syntax rules: keys and string values must use double quotes, not single quotes. Objects are enclosed in curly braces with key-value pairs separated by commas. Arrays use square brackets with comma-separated values. No trailing commas are allowed after the last item in objects or arrays. All keys must be strings enclosed in double quotes. Values can be strings, numbers, booleans, null, objects, or arrays. Proper indentation with consistent spacing improves readability, though it is not required. No comments are permitted in standard JSON. A properly formatted example: {"name": "John", "age": 30, "active": true}. Use JSON validators and formatters to ensure your JSON meets these requirements and is properly structured.
Last updated: December 23, 2025

Still have questions?

Can't find the answer you're looking for? Please reach out to our support team.