CSVJSON(1) csvkit CSVJSON(1) (NAME) csvjson - CSV JSON GeoJSON (DESCRIPTION) CSV JSON GeoJSON ( ): usage: csvjson [-h] [-d DELIMITER] [-t] [-q QUOTECHAR] [-u {0,1,2,3}] [-b] [-p ESCAPECHAR] [-z FIELD_SIZE_LIMIT] [-e ENCODING] [-L LOCALE] [-S] [--blanks] [--null-value NULL_VALUES [NULL_VALUES ...]] [--date-format DATE_FORMAT] [--datetime-format DATETIME_FORMAT] [-H] [-K SKIP_LINES] [-v] [-l] [--zero] [-V] [-i INDENT] [-k KEY] [--lat LAT] [--lon LON] [--type TYPE] [--geometry GEOMETRY] [--crs CRS] [--no-bbox] [--stream] [-y SNIFF_LIMIT] [-I] [FILE] CSV JSON ( GeoJSON). : FILE CSV . STDIN . : -h, --help -i INDENT, --indent INDENT () JSON . . -k KEY, --key KEY JSON (KEY) . . --lat --lon Feature GeoJSON . --lat LAT . JSON GeoJSON . --lon . --lon LON . JSON GeoJSON . --lat . --type TYPE GeoJSON. JSON GeoJSON . --lat --lon . --geometry GEOMETRY GeoJSON. JSON GeoJSON . --lat --lon . --crs CRS GeoJSON. --lat --lon . --no-bbox (bounding box). --stream JSON . -y SNIFF_LIMIT, --snifflimit SNIFF_LIMIT CSV . "0" "-1" . -I, --no-inference ( --locale --date-format --datetime-format --no-leading-zeroes) . : . (EXAMPLES) JSON : $ csvjson -k "State Abbreviate" -i 4 examples/realdata/FY09_EDU_Recipients_by_State.csv { "AL": { "State Name": "ALABAMA", "State Abbreviate": "AL", "Code": 1.0, "Montgomery GI Bill-Active Duty": 6718.0, "Montgomery GI Bill- Selective Reserve": 1728.0, "Dependents' Educational Assistance": 2703.0, "Reserve Educational Assistance Program": 1269.0, "Post-Vietnam Era Veteran's Educational Assistance Program": 8.0, "TOTAL": 12426.0, "j": null }, "...": { "...": "..." } } GeoJSON: $ csvjson --lat latitude --lon longitude --k slug --crs EPSG:4269 -i 4 examples/test_geo.csv { "type": "FeatureCollection", "bbox": [ -95.334619, 32.299076986939205, -95.250699, 32.351434 ], "crs": { "type": "name", "properties": { "name": "EPSG:4269" } }, "features": [ { "type": "Feature", "id": "dcl", "geometry": { "type": "Point", "coordinates": [ -95.30181, 32.35066 ] }, "properties": { "title": "Downtown Coffee Lounge", "artist": null, "description": "In addition to being the only coffee shop in downtown Tyler, DCL also features regular exhibitions of work by local artists.", "install_date": null, "address": "200 West Erwin Street", "type": "Gallery", "photo_url": null, "photo_credit": null, "last_seen_date": "2012-03-30" } }, { "...": "..." } ], "crs": { "type": "name", "properties": { "name": "EPSG:4269" } } } (AUTHOR) Christopher Groskopf (COPYRIGHT) 2016, Christopher Groskopf and James McKinney 2.2.0 CSVJSON(1)