title: Format JSON with PHP
body: <p>hello i need to write a json file in php, like this. I followed several tutorial but i don't understand how can i put brackets correctly:</p>
  
  <pre><code>{"data": [
      {
          "album": "OK Computer",
          "artist": "Radiohead",
          "first": true,
          "id": "okcomputer",
          "image": "okcomputer.png",
          "tracklist": [
              "Airbag",
              "Paranoid Android",
              "Subterranean Homesick Alien",
              "Exit Music (For a Film)",
              "Let Down",
              "Karma Police",
              "Fitter Happier",
              "Electioneering",
              "Climbing Up the Walls",
              "No Surprises",
              "Lucky",
              "The Tourist"
          ],
          "url": "https://itunes.apple.com/us/album/ok-computer/id696736813?i=696737042&amp;uo=4&amp;at=1l3v7Hz",
          "year": "1997"
      }
  ]}
  </code></pre>
  
  <p>how it is possible? Thanks!</p>