title: JavaScript json split object and update
body: <p>How do i split json object and update them according to the ID. I heard to use stringify! and how do i implement the function to update the object?</p>
  
  <pre><code>&lt;input type="text" value="{"id":"1","price":"30.00","edit":0},
  {"id":"2","price":"8.00","edit":0}" id="json" /&gt;
  
  **code:**
  var json = $('#json').val().split(',');
  
  for (var i = 0; i &lt; json.length; i++){
    alert(json);
  }
  //(seems its splitting every comma it finds).
  </code></pre>
  
  <p>Im trying to archive:</p>
  
  <ul>
  <li>Split the object {"id":"1","price":"30.00","edit":0}, {"id":"2","price":"8.00","edit":0}</li>
  <li>Update depends on selected ID.</li>
  <li>and then save and it return same object format but with updated value.</li>
  </ul>
  
  <p>hope my question clears enough :)</p>