Check if field exists in json type column PostgreSQL
JsonPostgresqlJson Problem Overview
How do you check if a json
field in Postgres has a certain element?
I have tried with json->>'attribute' is not null
and doesn't work.
Json Solutions
Solution 1 - Json
use ->
:
where (json->'attribute') is not null