Skip to content

Allow blank lines? #9

Open
Open

Description

@mbostock

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.

Activity

  1. ashander commented on Feb 2, 2017

    @ashander

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

  2. tin6150 commented on Apr 19, 2020

    @tin6150

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions