ArduinoJson
  • v6
    v5
  • Documentation
  • Assistant
  • Book
  • News
  • GitHub
Version 6

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

Crashes

  • ESP8266 crashes when compiled in Debug mode
  • Why does my device crash or reboot?

Performance

  • How to improve (de)serialization speed?
  • How to reduce memory usage?

Cannot find what you’re looking for?

  1. Home
  2. Version 6
  3. Common errors and problems
ArduinoJson is a JSON library for embedded C++.
Simple, efficient, and versatile.
Copyright 2014-2021 © Benoît Blanchon
Grammarly Logo Proofread by Grammarly
Newsletter
Stay informed of the major changes.
About Contact Privacy