Common errors and problems
On this page, you’ll find the explanation and the solution to the common problems that you might get while using ArduinoJson.
Beginner gotchas
- Why can’t I use
NULL
? - I found a memory leak in the library!
- Why does the output contain garbage?
- Why is the output incomplete?
deserializeJson()
succeeds by I cannot read any value 🆕
Compilation errors
call of overloaded 'println(...)' is ambiguous
invalid conversion from 'const char*' to 'char*' [-fpermissive]
no matching function for call to 'makeString(const int&)'
no matching function for call to 'BasicJsonDocument::BasicJsonDocument()'
DynamicJsonBuffer/StaticJsonBuffer is a class from ArduinoJson 5
macro "min" passed 3 arguments, but takes just 2
Run-time issues
- Why does ArduinoJson return
NotSupported
? - I found a memory leak in the library!
- Why is the input modified?
- Why does the output contain garbage?
- Why is the output incomplete?
- The serialized document contains
null
instead of a string