title: Manipulating and Outputting JSON in Ruby
body: <p>I have a JSON return (is it a hash? array? JS object?) where every entry is information on a person and follows the following format: </p>
  
  <pre><code>{"type"=&gt;"PersonSummary", 
  "id"=&gt;"123", "properties"=&gt;{"permalink"=&gt;"personname", 
  "api_path"=&gt;"people/personname"}} 
  </code></pre>
  
  <p>I would like to go through every entry, and output only the "id" </p>
  
  <p>I've put the entire JSON pull "response" into "result" </p>
  
  <pre><code>result = JSON.parse(response)
  </code></pre>
  
  <p>then, I'd like to go through result and do print the ID and "api_path" of the person: </p>
  
  <blockquote>
    <p>result.each do |print id AND api_path|</p>
  </blockquote>
  
  <p>How do I go about doing this in Ruby? </p>