I have a table with a field called data_json
.
An example of the JSON shape is below:
{
title: "My Title",
arr: ["hello there", "foobar", "foo hello bar"]
}
I'd simply like to find rows where data_json->'$.arr'
contains a value, using regexp
, or like
.
Eg:
select * from mytable where ??? like '%hello%';