# JSON Syntax

Consider the following JSON representation:

    {
      "autos": {
        "new":[
          {
            "name": "Tesla",
            "color": "Silver"
          },
          {
            "name": "Ferrari",
            "color": "Red"
          }
        ],
        "used":[
          {
            "name": "Pinto",
            "color": "Rust"
          }
        ]
      }
    }

JSON has a very simple grammar and therefore a simple syntax. Here are some basic rules:

- Curly braces, '{' and '}', act as 'containers'
- Square brackets, '[' and ']', hold arrays
- Keys and values are separated by a colon (':')
- Array elements are separated by commas (",")