In my table I have json column media
which is set to array (json array) like this:
media: [
{},
{},
{},
...,
{ key: 'thumbnail', metaData: { width: 123, height: 321 } }
]
I have to find all rows that contains (in media column) object with key = 'thumbnail' AND metaData.width = 123 AND metaData.height = 321
properties.
How I can do this with Postgres 9.3?