title: Ajax json Parser Error
body: <p>I keep on getting a JSON parser error 
  (firebug console say 'There are no child objects') for the following data:</p>
  
  <p>(String) var data from each iteration</p>
  
  <pre><code>var data='['; 
  data+=   '{ "title": "  Nac", "no1": "1212","no2": "12126"},';
  data+=   '{ "title": "  Nac", "no1": "1212","no2": "12126"},';
  data+=   '{ "title": "  Nac", "no1": "1212","no2": "12126"},';
  data+= ']';
  </code></pre>
  
  <p>and javascript parsing json</p>
  
  <pre><code>var json = JSON.parse(data)
  </code></pre>
  
  <p>and jQuery AJAX request</p>
  
  <pre><code>        $.ajax({
          type: "POST",
          data: json,
          url : 'ticket.php',
          dataType: 'json',
          async: false,
          contentType : 'application/json; charset=utf-8',
          error: function(jqXHR, exception) 
          {
              if (jqXHR.status === 0) 
              {
                  $('.item').html("err");
              } else if (jqXHR.status == 404) 
              {
                  $('.item').html('err!');
              } else if (jqXHR.status == 500) 
              {
                  alert("err!");
              } else if (exception === 'parsererror') 
              {
                  $('.item').html('err parsererror');
              } else if (exception === 'timeout') 
              {
                  $('.item').html('err!');
              } else if (exception === 'abort') 
              {
                  $('.item').html('err!');
              } else 
              {
              $('.item').html('err!');
              }
          },
          success : function(data)
          {
              alert("okey");
          }           
      });
  </code></pre>
  
  <p>and ticket.php is completely empty because I don't no how receive json data from ajax in php</p>
  
  <p>Any help would be highly appreciated.
  Thnks</p>