ndjson / ndjson-spec

Specification
680 stars 29 forks source link

Can a NDJSON file end with a new line character? #42

Closed onacit closed 2 months ago

onacit commented 2 months ago
{.........}0x0A
{.........}0x0A
{.........}0x0A
{.........}0x0A
{.........}0x0A
{.........}0x0A                << is this new line character at the end of the document allowed?

Is is, more specifically, specified?

onacit commented 2 months ago

Yes it is, is it?

Each JSON text MUST conform to the [RFC8259] standard and MUST be written to the stream followed by the newline character \n (0x0A).