Description

JsonDocument::overflowed() tells whether the JsonDocument was large enough to store all values.

This function was added in ArduinoJson 6.17.0

Signature

bool overflowed() const;

Return value

JsonDocument::overflowed() returns a bool that tells if the memory pool overflowed

  • false means that the memory pool was large enough, so all the values are present in the JsonDocument.
  • true means that the memory pool was too small, so some values are missing from the JsonDocument.

See also

 X online