Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

amotl
Copy link
Member

@amotl amotl commented Mar 4, 2023

Hi there,

this adds a decoder for NDJSON payloads. NDJSON is the Newline Delimited JSON format, and it is suitable for encoding/transmitting multiple JSON records in bulk, or for streaming them.

The standard JSON variant implemented with GH-40 is not really suitable for submitting data from embedded devices, because wrapping up multiple JSON records into an array will probably blow up your memory quickly.

NDJSON has been called LDJSON before being reasonably specified, and has also been known as JSON Lines, see also JSON streaming. It looks like this:

{"temperature":21.42,"humidity":41.55}
{"temperature":42.84,"humidity":83.1}

With kind regards,
Andreas.

/cc @Tonkenfo, @wetterfrosch, @msweef, @elektra42

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

Successfully merging this pull request may close these issues.

1 participant