title: How do I query a complex JSONB field in Django 1.9
body: <p>I have a table <code>item</code> with a field called <code>data</code> of type JSONB. I would like to query all items that have text that equals 'Super'.  I am trying to do this currently by doing this:</p>
  
  <p><code>Item.objects.filter(Q(data__areas__texts__text='Super'))</code></p>
  
  <p>Django debug toolbar is reporting the query used for this is:</p>
  
  <p><code>WHERE "item"."data" #&gt; ARRAY['areas', 'texts', 'text'] = '"Super"'</code></p>
  
  <p>But I'm not getting back any matching results.  How can I query this using Django?  If it's not possible in Django, then how can I query this in Postgresql?</p>
  
  <p>Here's an example of the contents of the <code>data</code> field:</p>
  
  <pre><code>{
    "areas": [
      {
        "texts": [
          {
            "text": "Super"
          }
        ]
      },
      {
        "texts": [
          {
            "text": "Duper"
          }
        ]
      }
    ]
  }
  </code></pre>