Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

autodetect CSV separator in input #13

Open
eadmaster opened this issue Nov 20, 2019 · 1 comment
Open

autodetect CSV separator in input #13

eadmaster opened this issue Nov 20, 2019 · 1 comment

Comments

@eadmaster
Copy link

eadmaster commented Nov 20, 2019

the converter does not work fine if the input csv is not using commas as separator.

e.g.:

$ curl 'http://beta-service.geonet.org.nz/fdsnws/station/1/query?&format=text&level=channel&network=NZ&starttime=2017-06-01T04:08:18.636' > test.csv
$ any-json convert test.csv test.json
@laktak
Copy link
Member

laktak commented Dec 3, 2019

any-json uses fast-csv which has an option to specify the separator.

If anyone wants to implement this please submit a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants