JsonBuffer is the entry point for using the library: it handles the memory management and calls the parser.
It implements a speed efficient memory pool and comes in two flavors:
DynamicJsonBufferwhich is allocated on the heap and grows automatically
StaticJsonBufferwhich is (most likely) allocated on the stack and has a fixed size.
- Serialization tutorial
- Deserialization tutorial
- How to reuse a JsonBuffer?
- What are the differences between StaticJsonBuffer and DynamicJsonBuffer?
- How to determine the buffer size?
- Why shouldn’t I use a global JsonBuffer?
- What are the common sizes for JsonBuffer?
- Mastering ArduinoJson (free ebook), chapter Inside ArduinoJson