Skip to content
Discussion options

You must be logged in to vote

JSON lines is meant to keep the processing overhead on the ESP as minimal as possible.
It can parse a line as soon as the \n is encountered instead of parsing the whole complex JSON object/array in memory first.
This allows streaming a large file or MQTT buffer without creating much overhead or duplicating values...

It should be easy to convert from a big JSON object/array to JSON lines on a PC instead of doing that on the MCU side.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@scribblrsam
Comment options

Comment options

You must be logged in to vote
1 reply
@scribblrsam
Comment options

Answer selected by scribblrsam
Comment options

You must be logged in to vote
2 replies
@rlust
Comment options

@scribblrsam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants