ArduinoJson icon indicating copy to clipboard operation
ArduinoJson copied to clipboard

serializeJson Does not like the format

Open CompunixSupport opened this issue 6 months ago • 1 comments

Description It was working previously, but now erroring out

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: framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
  • IDE: PlatformIO on VSCode, CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (6.10.0) > Espressif ESP32 Dev Module

Reproduction code

char post_data_string[POST_DATA_LEN];

if(content_length > 0)
        {       
            memset(post_data_string, 0, POST_DATA_LEN);
            serializeJson(post_data, post_data_string, POST_DATA_LEN);

....
}

Remarks I was changing the ArduinoJson around, trying to eliminate the heap corruptions, now cannot compile.

Dependency Graph |-- NTPClient @ 3.2.1 |-- ModbusMaster @ 2.0.1 |-- MCP23008 @ 0.3.5 |-- OTAdrive @ 1.1.33 |-- ArduinoJson @ 7.4.1 |-- FS @ 2.0.0 |-- SPIFFS @ 2.0.0 |-- WiFi @ 2.0.0 |-- WiFiClientSecure @ 2.0.0 |-- LittleFS @ 2.0.0 |-- Wire @ 2.0.0

CompunixSupport avatar May 28 '25 21:05 CompunixSupport

Hi @CompunixSupport,

Please apologize for the late response. What is the error message?

Best regards, Benoit

bblanchon avatar Jun 05 '25 07:06 bblanchon