There is a column "fields" in my table. It contains something like this:
{"creative_url": {"required": true, "data_type": "string"}}
or
{"creative_name_field": {"required": false, "data_type": "integer"}}
So, different keys in main dict.
I want to select all rows with:
"required": true
Trying something like :
select *
from my_table
where fields @> '{"required":true}'
But it shows me nothing (0 rows found).
Postgres documentation doesn't give me any other method to do this. What's the problem?