Learn JSON
JSON has objects, arrays, strings, numbers, booleans and null. Strings and object keys use double quotes.
Read each short explanation, work through the example, then answer a pop quiz. Every answer explains the reasoning. Incorrect answers unlock a fresh question on the same idea; the full lesson contains ten questions.
01Understand the basics
Ready to learnJavaScript Object Notation (JSON) is a text format for exchanging data. Objects use named properties; arrays hold ordered items. Strings and property names use double quotes. JSON supports numbers, booleans and null, but not comments or trailing commas.
02Keep types meaningful
Ready to learnThe number 42 and the string "42" are different values. Arrays preserve order; an object maps property names to values. Use the types expected by the receiving system.
Try a different value
03Validate the contract
Ready to learnParsing checks syntax. A schema can check required fields and value types. Business checks decide whether the values make sense for the real operation.
You’ve practised all three sections.
First-attempt understanding and later practice are shown separately. Keep practising with the related tools or continue through the suggested path.
Put it to work
Apply what you’ve learned using the related tools.