Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load ndjson #30

Closed
jayvdb opened this issue Jul 24, 2017 · 2 comments
Closed

Load ndjson #30

jayvdb opened this issue Jul 24, 2017 · 2 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Jul 24, 2017

Newline delimitered JSON is very popular for JSON streams.
It should be quite easy to support in this plugin, if we dont move JSON to a separate plugin.

@jayvdb
Copy link
Contributor Author

jayvdb commented Jul 24, 2017

Other various similar JSON formats are listed at https://en.wikipedia.org/wiki/JSON_Streaming

@jayvdb jayvdb mentioned this issue Jul 24, 2017
@chfw
Copy link
Member

chfw commented Jul 24, 2017

I would agree it is simple to support ndjson . Regarding the package, I would imagine pyexcel-json to do the read and write of json, ndjson. In terms of content structure, the following format can be considered as valid input as json: flat two demensional array(sheet), a dictionary of records(sheet) an a dictionary of two dimensional array(book). for ndjson, I think the following may be supported:

[1,2]
[3,4]

or

{"product": "cable", "price":20}
{"product": "wire", "price": 10}

@chfw chfw closed this as completed in c5fe5ce Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants