how to parse json using json_populate_recordset in postgres
The first argument passed to pgsql function json_populate_recordsetshould be a row type. If you want to use the json array to populate the existing table anoop you can simply pass the table anoop as the row type like this: insert into anoop select * from json_populate_recordset(null::anoop, ‘[{“id”:67272,”name”:”EE_Quick_Changes_J_UTP.xlsx”}, {“id”:67273,”name”:”16167.txt”}, {“id”:67274,”name”:”EE_12_09_2013_Bcum_Searchall.png”}]’); Here the null is the default … Read more