-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jsonlines.org #8
Comments
Yes. We need an official one of these. I like the "ndjson" name better than "JSON Lines". |
I guess I prefer for things to fail loudly when something isn't right. This spec suggests that any number of newlines is acceptable between records. I deliberately included language on jsonlines.org about referencing records by index because that's what unix text processing tools do. How about saying that each newline creates a new record, and that blank records may be treated as |
Hm, I don't like |
Hi @wardi, I feel like I closed this issue too quickly last year. The spec actually now reads this: If the JSON text is not parseable, the parser SHOULD raise an error. The parser MAY silently ignore empty lines, e.g. This only optionally allows the new line to be ignored. So the default behavior is the one you preferred for JSONLines. I would love to hear your opinion. Maybe we can merge JSONLines and NDJSON now? |
@finnp probably! That would eliminate one of the projects I don't make enough time for. I was planning to add more examples of use, such as use of You haven't included any language about record numbers. I feel that it is important to have a common language to reference items within a ndjson stream. Would you consider adding this as a recommendation? |
Hey,
I just saw this page on
JSON Lines
, which also is basically ndjson: http://jsonlines.org/It is more of a good documention on the format than a specification, but I like it.
@wardi I just saw the page. Do you feel like giving input to the spec?
Best,
Finn
The text was updated successfully, but these errors were encountered: