title: How do I iterate over this JSON object?
body: <p>This is an object that is returned as a <code>response</code> in an HTTP POST request:</p>
  
  <pre><code>res.body
  =&gt; "{\"id\":\"a3adasfaf3\",\"url\":\"https://someurl/a3adasfaf3\",\"created\":\"2016-05-30T07:00:58Z\",\"modified\":\"2016-05-30T07:00:58Z\",\"files_hash\":\"cljhlk2j3l2kj34hlke18\",\"language\":\"ruby\",\"title\":\"Some weird hello world message\",\"public\":false,\"owner\":\"kljhlk2jh34lk2jh4l2kj3h4l2kj4h23l4kjh2l4k\",\"files\":[{\"name\":\"Some-weird-hello-world-message.rb\",\"content\":\"puts \\\"Some weird hello world message.\\\"\\r\\n\"}]}"
  </code></pre>
  
  <p>I am trying to pull out, and translate the various attributes of that <code>response</code>. For instance, at the very least the <code>id</code> and <code>url</code>.</p>
  
  <p>How do I do this?</p>
  
  <p>For the record, I am using Ruby's <a href="http://ruby-doc.org/stdlib-2.3.1/libdoc/net/http/rdoc/Net/HTTP.html" rel="nofollow">NET/HTTP std lib</a> to send the POST request and get back this response.</p>
  
  <p><strong>Edit 1</strong></p>
  
  <p>For bonus points, all I want is the actual value stored in each attribute (i.e. the actual <code>id</code> (which is just a string) and a <code>url</code> (which is a typical URL). So if you included how I might both access that attribute and then sanitize it at the same time that would be awesome.</p>