title: User Grape Entity with Arrays
body: <p>I was wondering whether Grape Entity would work for rendering arrays of hashes, I thought I remebered it worked but somehow I cannot get it to work right now, am I doing some obvious mistake? Here's my Entity:</p>
  
  <pre><code>class V1::Entities::Searchresult &lt; Grape::Entity
     expose :_type, as: :type
     expose :_id, as: :id
     expose :_score, as: :score
     expose :highlight
  end
  </code></pre>
  
  <p>In my API I call the rendering like this:</p>
  
  <pre><code>present result['hits']['hits'], with: V1::Entities::Searchresult, :params =&gt; params
  </code></pre>
  
  <p>The 'result['hits']['hits']' is filled with 10 hashes that contain the data. The data is present. However when I look at the result I get: </p>
  
  <pre><code>[
    {
      "type": null,
      "id": null,
      "score": null,
      "highlight": null
    },
    {
      "type": null,
      "id": null,
      "score": null,
      "highlight": null
    },
    ......
  </code></pre>
  
  <p>Am I doing something wrong, or is this simply not possible. I can't seem to dig up any documentation on the array toppic.</p>
  
  <p>Cheers</p>
  
  <p>Tom</p>