PostgreSL json_populate_record和json_populate_recordset 函数
官方示例是这样的select*fromjson_populate_record(null::myrowtype,'{"a":1,"b":["2","ab"],"c":{"d":4,"e":"abc"}}');select*fromjson_populate_recordset(null::myrowtype,'[{"a":1,"b":2},{"a":3,"b":4}]');null::myrowt