title: Django getting values from postgres JSON field
body: <p>I have a simple model like:</p>
  <pre class="lang-py prettyprint-override"><code>class MyModel(models.Model):
      data = JSONField()
  </code></pre>
  <p>The JSONField <code>data</code> is in the following structure:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;Brian&quot;,
    &quot;skills&quot;: [
       {&quot;id&quot;: 4, &quot;name&quot;: &quot;First aid&quot;},
       {&quot;id&quot;: 5, &quot;name&quot;: &quot;Second aid&quot;}
    ]
  }
  </code></pre>
  <p>I'd like to create a query that gets a list of MyModels filtered by the <code>id</code> of the <code>skill</code> inside the data.</p>
  <p>I've tried a few different avenues here, and can do the work in Python but I'm pretty sure there's a way to do this in Django; I think my SQL isn't good enough to figure it out.</p>
  <p>Cheers in advance.</p>