ArduinoJson 7 released

The long-awaited ArduinoJson 7 is finally here!

It redefines the memory allocation strategy to adapt to the new microcontroller landscape.
It abandons fixed memory allocation in favor of an entirely dynamic strategy.

StaticJsonDocument and DynamicJsonDocument merged into a single JsonDocument class with elastic capacity.

// ArduinoJson 6
StaticJsonDocument<256> doc;
// or
DynamicJsonDocument doc(256);

// ArduinoJson 7
JsonDocument doc;

ArduinoJson 7 is code-compatible with ArduinoJson 6, but you probably want to upgrade your code to enjoy the simplicity of the new API.

See the article on arduinojson.org or watch the video on YouTube for details.

4 Likes

good - thx for the hard work on maintaining and evolving your library

(hopefully there is no hole poking issues with the "elastic" memory)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.