我有一个1.2GB的.csv
文件,该文件的行在数据部分中包含逗号“,”。我使用node.js将CSV转换为JSON文件。
标题行包含:
ID,Case Number,Date,Block,IUCR,Primary Type,Description,Location Description,Arrest,Domestic,Beat,District,Ward,Community Area,FBI Code,X Coordinate,Y Coordinate,Year,Updated On,Latitude,Longitude,Location
数据如下所示:
6340381,HP428814,07/02/2008 12:00:00 AM,013XX W ARDMORE AVE,0890,THEFT,FROM BUILDING,OTHER,false,false,2013,020,48,77,06,1166245,1938965,2008,02/04/2016 06:33:39 AM,41.988100417,-87.663899454,"(41.988100417, -87.663899454)"
查看最后一个数据,即location
包含值(41.988100417, -87.663899454)
,其中包含逗号。我应该如何分开它。