JSON
Lesson 4 of 20 · API.Micro
The text format most APIs use to send data back and forth.
{"id": 2, "name": "Latte", "price": 4, "category": "coffee"}
{} is an object of "key": value pairs and [] is a list. Values are strings in double quotes, numbers, true/false or null. Find each type in the response.
Check yourself
Which is valid JSON?
Do it in the browser: a real REST APIs tool, a short mission and instant feedback. No install.
Start this lesson — free