Transforming a CSV to JSON using PostgreSQL 9.3 -
i have csv file structured follows:
name, place, date "john", "nyc", "2014-01-01, 2014-02-01" "bill", "la", "2014-04-01" "jim", "chicago", "2014-03-02, 2014-03-03, 2014-03-04" i have json schema follows:
"name":{ "type":"string" } "place":{ "type":"string" } "datelist":{ "type":"array" "date":{ "type":"string" } } using functions built postgresql 9.3, possible transform csv json matching given schema?
Comments
Post a Comment