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

Relation to mongodb export/import #20

Open
jeroen opened this issue Dec 31, 2014 · 1 comment
Open

Relation to mongodb export/import #20

jeroen opened this issue Dec 31, 2014 · 1 comment

Comments

@jeroen
Copy link

jeroen commented Dec 31, 2014

Are you aware that the mongodb database uses newline delimited json for exporting/importing (potentially large) datasets? See for example zips.json. How does this relate to ndjson? Can the mongoimport be considered an ndjson parser?

It might be helpful to cross-reference them somewhere. I asked for a term for this format a while ago and nobody pointed me to ndjson.

I have also implemented a stream parser for this format in R in the jsonlite package.

@finnp finnp mentioned this issue Dec 31, 2014
@finnp
Copy link
Member

finnp commented Dec 31, 2014

Thank you for pointing this out. Yes the format is already used a while and this standard tries to give it a name. json is clearly a bit confusing, since no JSON parser will parse consecutive JSON objects.

We should probably try to reach out to mongodb about this. It would be good to have them mention it there.

Would you consider publishing stream_in and stream_out as a ndjson R package? Or maybe at least mention ndjson in the documenation? Then we could link your impementation as the reference implementation for R somewhere.

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