title: How to rename JSON key
body: <p>I have a JSON object with the following content:</p>
  
  <pre><code>[
    {
      "_id":"5078c3a803ff4197dc81fbfb",
      "email":"user1@gmail.com",
      "image":"some_image_url",
      "name":"Name 1"
    },
    {
      "_id":"5078c3a803ff4197dc81fbfc",
      "email":"user2@gmail.com",
      "image":"some_image_url",
      "name":"Name 2"
    }
  ]
  </code></pre>
  
  <p>I want to change the "_id" key to "id" so it would become</p>
  
  <pre><code>[
    {
      "id":"5078c3a803ff4197dc81fbfb",
      "email":"user1@gmail.com",
      "image":"some_image_url",
      "name":"Name 1"
    },
    {
      "id":"5078c3a803ff4197dc81fbfc",
      "email":"user2@gmail.com",
      "image":"some_image_url",
      "name":"Name 2"
    }
  ]
  </code></pre>
  
  <p>How would I do that either with Javascript, jQuery or Ruby, Rails?</p>
  
  <p>Thanks.</p>