Django JSONField contains list of values
<p>I have values in 'codes' JSONField structured like this:</p>

<pre><code>[{"x": "723"}, {"x": "614"}]
</code></pre>

<p>I need to get Events objects where event.codes "x" key is IN a list of values, for example ['723', '332', ..]</p>

<p>EDIT</p>

<p>The model is:</p>

<pre><code>from django.contrib.postgres.fields import JSONField

class Events(models.Model):
    codes = JSONField(null=False, blank=True, default={})
</code></pre>