desrialization error with size parameter

Author: peaultCreated Aug 12, 2026Updated Aug 15, 2026
Labelsquestionv7

Description compiler fail when i use the size parameter

Troubleshooter's report

  1. The program uses ArduinoJson 7
  2. The issue happens at compile time
  3. Error says "no matching function for call to ..."
  4. The error is not in the list

Environment

  • Microcontroller: esp32
  • Core/Framework: arduino
  • IDE: plateformio

Reproduction code

cpp
tatic int parse_json_response(size_t size)
{

 if (size == 0)
    {
        return ERR_SER_DOMOTIC;
    }

    doc_dom.clear();

    const DeserializationError error =
        deserializeJson(doc_dom, client,size);

    if (error)
    {
        Serial.print(F("Erreur deserialisation JSON : "));
        Serial.println(error.c_str());

        return ERR_SER_DOMOTIC;
    }