Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Add decoder for acquiring data in NDJSON format #129

Draft
wants to merge 1 commit into
base: bulk-json-compact
Choose a base branch
from

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