JSON
JSON
A way of writing data as labels and values, like { "name": "Alex", "age": 20 }.
💡 It's like a shipping label with set boxes: 'To: ___, Address: ___'.
🤖 Say this to your AI
Create a JSON file with a list of products. Each product has an id, name, price, and image URL, and the page should read this JSON and show each product as a card.
The key word is ‘JSON’. Including it helps AI understand you much more precisely.
When to use it
- When you look at the data an API sends back
- When you look at settings files like package.json
Also called: json file, data format, curly braces, {}, key value, jay-son