Go Down

Topic: jWrite - a really simple JSON writer in C (C++ "Arduino" version) (Read 88 times) previous topic - next topic


jWrite is a simple way of writing JSON to a char buffer in C, directly from native variables. It manages the output buffer so you don't overrun, it handles all the fiddly quotes, brackets and commas and reports where you have tried to create invalid JSON.

There is now a C++ version with demo sketch for Arduino.

See the article: jWrite - a really simple JSON writer in C

Code with a sketch which runs a few demos is attached.



Usefull, thanks for sharing!

reminds me of my XMLwriter class - https://github.com/RobTillaart/Arduino/tree/master/libraries/XMLWriter
and that a similar json class is still on my todo list ....

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up