#ArduinoJson

2023-11-12

#ThingsILearntThisWeek - the #ArduinoJSON (spelling is important) library is a good resource with excellent documentation

2021-05-28

Put APIs to Work wth this ArduinoJson Walkthrough

One of the things this community is famous for is the degree to which people will pitch in to fill an obvious need. Look at the vast array of libraries available for Arduino as an example of how people are willing to devote their time to making difficult tasks easier, often for little more than a virtual pat on the back.

One level up from the library writers are those who go through the trouble of explaining how all these libraries work in real-world applications. [Brian Lough] recently rose to that challenge with a thorough explanation of the use of the ArduinoJSON library, a very useful but often confusing library that makes IoT projects easier.

The need for an ArduinoJSON explainer no knock on its author, [Benoît Blanchon], who has done excellent work documenting the library; it's more of a realization that the nature of JSON itself means a library that works with it is going to be complex. [Brian]'s contribution here is sharing his insights into getting ArduinoJSON up and running in a real-world ESP32 example, and dealing with the potential pitfalls of parsing a human-readable text file that can be used to represent almost any data object using the limited resources of a microcontroller. Along with the basics, we found the warning about how pointers refer back to the dynamic JSON document object particularly helpful; the bit about using filters to winnow down a large data set was useful too.

Thanks to [Brian] for taking the time to put this valuable information out there. Here's hoping this encourages others to share the wealth of hard-earned knowledge in a similarly clear and concise manner.

#microcontrollers #api #applicationprogramminginterface #arduinojson #deserialization #javascriptojectnotation #json #parsing #serialization

image
2021-04-22

#ArduinoJson is a #JSON #parser for #Arduino.

ArduinoJson is a JSON parser written in a dialect of #Cpp used for #embedded devices like Arduino. ArduinoJson uses static memory allocation, preventing memory fragmentation. ArduinoJson is also faster, smaller, and uses less RAM than other JSON parsers for Arduino, while offering an expressive API. ArduinoJson supports #MessagePack.

Website 🔗️: arduinojson.org/

#free #opensource #foss #fossmendations #programming

Ronal Forero 🇻🇪 🐧l337
2019-10-09

Tuve serios problemas serializando y deserializando y resulta que el asistente de la libreria no sir para nada.. me tocaba siempre agregar un numero mas al tamaño de capacity..

Aqui me recomendaba 1 y realmente funciono con 2....

const size_t capacity = JSON_OBJECT_SIZE(2);
DynamicJsonDocument doc(capacity);

Ronal Forero 🇻🇪 🐧l337
2019-10-09

bueno que puedo decir de la libreria , esta buena pero le falta, es inestable me parece que el desarrolllador esta haciendo buen trabajo, pero el hecho de que este en la version 6 y sea inestable esta fea la situacion

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst