add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT 3
ERROR:  operator does not exist: jsonb @@ unknown
LINE 2: where jsonb_column @@ '$.key_1.type()=="array"'
                           ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
ERROR:  operator does not exist: jsonb @? unknown
LINE 2: where jsonb_column @? '$.key_1[1]'
                           ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
id jsonb_column
3 {"key_1": ["value1", "value2"]}
SELECT 1
id jsonb_column
1 {"key_1": "value1"}
SELECT 1
ERROR:  cannot subscript type jsonb because it is not an array