A concise, modern introduction to the JSON data interchange format: what it is and why it became the de facto standard for
REST API; basic structures — objects
{ } and arrays
[ ]; allowed types (strings
"...", numbers, boolean values
true/
false,
null); nesting; comparison with XML; JSON ↔ Java mappings (collections
Map<K, V>,
HashMap<K, V>). We go through practical examples and common mistakes: single quotes, trailing commas,
undefined, numbers with leading zeros.