title: Printing out JSON objects
body: <p>I am trying to figure out how to print JSON objects while looped from a database, for example, this is one JSON object</p>
  
  <pre><code>{
      "form name": "input distribution form",
      "ID": "5",
      "Cohort": "Cohort 1",
      "Organisation": "Concern Worlwide",
      "District": "Balaka",
      "T/A": "Kachanga"
  }
  </code></pre>
  
  <p>The above is valid JSON but when its more than one object I am trying to loop through, it is displayed like this:</p>
  
  <pre><code>{
      "form name": "input distribution form",
      "ID": "5",
      "Cohort": "Cohort 1",
      "Organisation": "Concern Worlwide",
      "District": "Balaka",
      "T/A": "Kachanga"
  }{
      "form name": "input distribution form",
      "ID": "5",
      "Cohort": "Cohort 1",
      "Organisation": "Concern Worlwide",
      "District": "Balaka",
      "T/A": "Kachanga"
  }
  </code></pre>
  
  <p>Example above is now invalid JSON, these objects are being looped from a database where they were serialized PHP objects then JSON encoded to be displayed like the above. </p>