JSON documents follow a simple structure based on two main concepts: objects and arrays. Objects are collections of key–value pairs enclosed in curly braces {}, while arrays represent ordered lists of values enclosed in square brackets []. Proper syntax ensures that JSON data can be reliably processed by applications.

Example: JSON object with multiple fields

{
  "title": "Learning JSON",
  "author": "John Smith",
  "year": 2024
}

Each property contains a name (key) and a corresponding value.