Quotes and commas
Use double quotes for names and strings and remove a trailing comma.
JSON looks like a JavaScript object, but its rules are stricter. These two beginner exercises ask you to repair an API response and a configuration file, and to validate every change.
Know what objects, arrays, strings, numbers and booleans are. The lessons explain each syntax rule when you need it.
Use double quotes for names and strings and remove a trailing comma.
Remove a comment, write true and false in lowercase and add a missing comma.
Replace single quotes with double quotes, quote property names and remove the trailing comma so the document is valid JSON.
Open lesson and hintsMake this configuration valid JSON. Remove the comment, replace the Python-style True with a JSON boolean and add the missing comma between the two hosts.
Open lesson and hintsRun the validator, read the reported location, fix one problem and validate again. Making one change at a time shows which edit solved which error.
The JSON validator checks syntax only. It does not check JSON Schema or the business rules of an API, and sensitive production data should not be pasted into it.
Completion is self-reported. There is no automated grading, and progress is saved only on this device.