title: How can I access an array of objects from GData JSON in Ruby?
body: <p>I am trying to write a Jekyll extension that will embed comments from a Blogger blog.<br>
  I am able to fetch the comments feed as JSON, and process it enough to pull out the total number of comments. However, I have not figured out how to process each comment in the feed.</p>
  
  <pre class="lang-rb prettyprint-override"><code>json_url = "http://www.blogger.com/feeds/8505008/593465383646513269/comments/default/?alt=json"
  json_rep = Net::HTTP.get_response(json_url)
  json_rep = JSON.parse(json_rep.body)
  json_rep['feed']['openSearch$totalResults']['$t'] # =&gt; "4"
  json_rep['feed']['entry'].class # =&gt; Array
  
  json_rep['feed']['entry'].length
  # =&gt; Liquid Exception: undefined method `length' for nil:NilClass in post
  </code></pre>
  
  <p>This is my first time writing any code in Ruby. What am I doing wrong?</p>
  
  <p>Here are the relevant parts of the <a href="http://www.blogger.com/feeds/8505008/593465383646513269/comments/default/?alt=json" rel="nofollow">JSON I am trying to parse</a>.</p>
  
  <pre class="lang-js prettyprint-override"><code>{
    "feed": {
      "openSearch$totalResults": {
        "$t": "4"
      },
      "entry": [
        {
          "id": {
            "$t": "tag:blogger.com,1999:blog-8505008.post-491866073982779922"
          },
          "published": {
            "$t": "2013-01-08T15:23:47.322-04:00"
          },
          "content": {
            "type": "html",
            "$t": "Recently, my sister has updated it more than I have. \u00dcber-fail on my part. :p"
          }
        }
      ]
    }
  }
  </code></pre>