|
|
|
|
|
by o11c
849 days ago
|
|
It's strictly worse, actually. ndjson specifies sane newline handling, since it works with terminators. jsonlines works with separators and thus fails to detect truncated values. As a result, it can silently produce incorrect numeric values. |
|
On the other hand, requiring line terminators in the standard would inevitably lead to incompatibility issues. Most software would accept unterminated files, because text libraries do; and so some files will not be terminated. Some applications do not line-terminate files even on Linux (hello VSCode), and it would be even more problematic on Windows