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

Allow blank lines? #9

Open
mbostock opened this issue Sep 9, 2016 · 2 comments
Open

Allow blank lines? #9

mbostock opened this issue Sep 9, 2016 · 2 comments

Comments

@mbostock
Copy link
Owner

mbostock commented Sep 9, 2016

The ndjson specification suggests that parsers should have an option for allowing (and ignoring) blank lines. It doesn’t explicitly specify the definition of an “empty line” but I’m guessing an all whitespace line is also ignored.

@ashander
Copy link

ashander commented Feb 2, 2017

alternatively, grep -vE '^\s?$' file | ndjson-*

@tin6150
Copy link

tin6150 commented Apr 19, 2020

thank you for this great tool (and idea!), it would make data processing easier. But, could you please at least spell out a more user friendly error when newline is encountered? I had some semi-human readable json that failed to convert, and it took me a long long time to find that i have to filter thru json5 to rid the white space before ndjson-split would work. Thanks!

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

3 participants