Skip to content

JSON Library warnings #1

@ozarchie

Description

@ozarchie

Environment:
System: Mac ARM M2
Arduino: Version: 2.3.8 CLI Version: 1.4.1
Copyright © 2026 Arduino SA

I have an Arduino program that uses your Dashboard, which compiles and works very well.

But .. I have to use //github.com/bblanchon/ArduinoJson.git @ 6.21.5 to get a clean compile.

If I use any of the 7.x.x libraries I get a significant number of warnings like:

/Users/xxxx/LocalProjects/libraries/ArduinoJson/src/ArduinoJson/compatibility.hpp:63:58: note: declared here 63 | class ARDUINOJSON_DEPRECATED("use JsonDocument instead") StaticJsonDocument | ^~~~~~~~~~~~~~~~~~ /Users/xxxx/LocalProjects/libraries/ESP-DashboardPlus/src/ESPDashboardPlus.h: In member function 'void ESPDashboardPlus::updateDropdownCard(const String&, const String&)': /Users/xxxx/LocalProjects/libraries/ESP-DashboardPlus/src/ESPDashboardPlus.h:1804:14: warning: 'template<unsigned int N> class ArduinoJson::V742PB22::StaticJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations] 1804 | StaticJsonDocument<256> doc;

Your document suggests that I should use 7.x.x.
These warnings do not appear to affect the compilation and operation of the code.

Should I just ignore them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions