title: how to split some json arrays in one variable into different variables? (Javascript)
body: <p>I'm confused about JSON.</p>
  
  <p>I got this JSON data (already parsed) from php;</p>
  
  <pre><code>    var json =
      {"id":"1", "name":"AAA", "sex":"m", "age":"20", "region":"X"}
      {"id":"2", "name":"BBB", "sex":"m", "age":"25", "region":"Y"}
      {"id":"3", "name":"CCC", "sex":"f", "age":"30", "region":"Z"}
      {"id":"4", "name":"DDD", "sex":"m", "age":"35", "region":"Q"}
  </code></pre>
  
  <p>and these are separated arrays within one var.</p>
  
  <p>I'd like to make them like this,</p>
  
  <pre><code>    var json1 = {"id":"1", "name":"AAA", "sex":"m", "age":"20", "region":"X"}
      var json2 = {"id":"2", "name":"BBB", "sex":"m", "age":"25", "region":"Y"}
      var json3 = {"id":"3", "name":"CCC", "sex":"f", "age":"30", "region":"Z"}
      var json4 = {"id":"4", "name":"DDD", "sex":"m", "age":"35", "region":"Q"}
  </code></pre>
  
  <hr>
  
  <p>I'm currently developing Titanium mobile (iOS) with PHP.
  and PHP send JSON data like this;</p>
  
  <pre><code>    foreach($responses as $response)
      {
          echo encode_json($response);
      }
  </code></pre>
  
  <p>※$responses is result from sql order.</p>
  
  <p>and now Titanium side, Titanium file will receive and parse it.</p>
  
  <pre><code>    Req.onload = function()
      {
          var json = JSON.stringify(this.responseText);
          var response = JSON.parse(json);
          Ti.API.info(response);
      }
  </code></pre>
  
  <p>Ti.API.info says on console;</p>
  
  <pre><code>    [INFO] {"id":"1", "name":"AAA", "sex":"m", "age":"20", "region":"X"}{"id":"2", "name":"BBB", "sex":"m", "age":"25", "region":"Y"}{"id":"3", "name":"CCC", "sex":"f", "age":"30", "region":"Z"}{"id":"4", "name":"DDD", "sex":"m", "age":"35", "region":"Q"}
      //as I wrote it above
  </code></pre>
  
  <p>I'm sorry for those came to see JS problem but Titanium.</p>