By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1
| id | data |
|---|---|
| 1 | [{"cc": null, "subsectionid": 26}, {"cc": null, "subsectionid": 27}] |
SELECT 1
ERROR: invalid input syntax for type json LINE 2: SET data = data || '{null: ["Lake Providence"]}'::jsonb ^ DETAIL: Expected string or "}", but found "null". CONTEXT: JSON data, line 1: {null...
| jsonb_pretty |
|---|
| [ { "cc": null, "subsectionid": 26 }, { "cc": [ "Lake Providence" ], "subsectionid": 27 } ] |
UPDATE 1