commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Gavlin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CSV-116) Support JSON-encoded properties such as GeoJSON
Date Fri, 16 May 2014 18:29:15 GMT

    [ https://issues.apache.org/jira/browse/CSV-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000096#comment-14000096
] 

Ron Gavlin commented on CSV-116:
--------------------------------

"Row quoting" refers to the technique used to QUOTE a json column within a CSV ROW. Samples
of the three flavors are available here:

https://github.com/mapnik/mapnik/blob/master/tests/data/csv/geojson_double_quote_escape.csv

https://github.com/mapnik/mapnik/blob/master/tests/data/csv/geojson_single_quote.csv

https://github.com/mapnik/mapnik/blob/master/tests/data/csv/geojson_2x_double_quote_filebakery_style.csv

Please let me know if you have further questions. 

Since JSON has become so popular, I think it is reasonable for the CSV component to natively
support JSON-encoded  column values.

> Support JSON-encoded properties such as GeoJSON
> -----------------------------------------------
>
>                 Key: CSV-116
>                 URL: https://issues.apache.org/jira/browse/CSV-116
>             Project: Commons CSV
>          Issue Type: Improvement
>          Components: Parser
>            Reporter: Ron Gavlin
>
> Support the three json row quoting flavors currently supported by the mapnik.org csv
plugin described here: https://github.com/mapnik/mapnik/issues/1392.
> The proposed supported flavors are:
> {noformat}
>     "{\"type\":\"Point\",\"coordinates\":[30.0,10.0]}" // escaped
>     '{"type":"Point","coordinates":[30.0,10.0]}' // single quotes no need for escaped
>     "{""type"":""Point"",""coordinates"":[30.0,10.0]}" // filebakery.com style
> {noformat}
> Note the following commit for this mapnik feature has sample CSV files for your reference:
https://github.com/mapnik/mapnik/commit/f42805a5321d42f59b447a70f459058cf2c6cd5c



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message