title: Add values to Ruby JSON Object
body: <p>I am working on Ruby on Rails. I have JSON object like this in my database:</p>
  
  <pre><code>{"data":[
      {"name":"A", "available":"1"},
      {"name":"B", "available":"0"}
  ]}
  </code></pre>
  
  <p>I want to update this by adding another record and it should look like:</p>
  
  <pre><code>{"data":[
          {"name":"A", "available":"1"},
          {"name":"B", "available":"0"},
          {"name":"C","available":"1"}
      ]}
  </code></pre>
  
  <p>How can I do this?</p>