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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -