title: JSON array javascript
body: <p>I need to store 3 pet names in <code>string</code> format, parse them into array and later read one by one</p>
  
  <p>Example</p>
  
  <pre><code>pets = '{{"name":"jack"},{"name":"john"},{name:"joe"}}';
  
  var arr = JSON.parse(pets);
  
  alert(arr[0].name);
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>Also I would need to add entry to array (probably with <strong>push</strong>) but I am having problems too.</p>
  
  <p>Someone has idea how to do it?</p>