Understanding JSON Structure
JSON is built on two primary structures: **Objects** and **Arrays**. Mastering these is key to working with modern APIs and data stores.
1. Objects (Key-Value Pairs)
An object is an unordered set of name/value pairs. It begins with a left brace { and ends with a right brace }.
{
"name": "JSONFriend",
"active": true
}2. Arrays (Ordered Lists)
jsonpath-cheat-sheetAn array is an ordered collection of values. It begins with [ and ends with ]. Values are separated by commas.
["Basics", "Tools", "Reference"]3. Data Types
String
"Hello World"
"Hello World"
Number
42, 3.14
42, 3.14
Boolean
true, false
true, false
Null
null
null
Object
{ ... }
{ ... }
Array
[ ... ]
[ ... ]
Visually Build JSON
Use our Builder Tool to create complex JSON structures without writing code.
Open JSON Builder →