I'm very new to Postgres and trying to insert the array integer values into a table as multiple rows.
Here is the json string
'{
"types": [3,6]
}'
trying to read and insert the types into a table with an error
INSERT INTO table(type) SELECT unnest(par_json->'types'::int[])
ERROR: malformed array literal: "types" DETAIL: Array value must start with "{" or dimension information.
Appreciate your help !