find empty json objects in postgres

Developer from somewhere

Say you have a content column of type json, which holds arrays, and you want to delete the empty ones:

select * from events where content::text = '[]'::text;