title: Ruby extract single key value from first block in json
body: <p>I'm parsing a very large json output from an application API and end up with a ruby array similar to the sanitized version below:</p>
  
  <pre><code>{"log_entries"=&gt;
    [{"id=&gt;"SDF888B2B2KAZZ0AGGB200",
      "type"=&gt;"warning",
      "summary"=&gt;"Things happened",
      "created"=&gt;"2017-07-11T18:40:31Z",
      "person"=&gt;
        {"id"=&gt;"44bAN8",
         "name"=&gt;"Harry"}
      "system"=&gt;"local",
      "service"=&gt;"syslog"
    {"id=&gt;"HMB001NBALLB81MMLLABLK",
      "type"=&gt;"info",
      "summary"=&gt;"Notice",
      "created"=&gt;"2017-06-02T11:23:21Z",
      "person"=&gt;
        {"id"=&gt;"372z1j",
         "name"=&gt;"Sally"}
      "system"=&gt;"local",
      "service"=&gt;"syslog"}]},
  "other"=&gt;200,
  "set"=&gt;0,
  "more"=&gt;false,
  "total"=nil}
  </code></pre>
  
  <p>I just need to be able to print the value of the "created" key only in the first block. Meaning, when the program exits, I need it to print "2017-07-11T18:40:31Z." I've googled a lot but wasn't successful in finding anything.  I've tried something like:</p>
  
  <pre><code>puts ["log_entries"]["id"]["created"] 
  </code></pre>
  
  <p>My expectation was to print all of them to start <em>somewhere</em> and even that yields an error. Forgive me, I don't use ruby much.</p>