Skip to content

Arduino JSON breaks starting with v 3.9.0 on Arduino #350

@jfandl325

Description

@jfandl325

Platform

ESP32

IDE / Tooling

Arduino (IDE/CLI)

What happened?

My code was running fine, then I upgraded from 3.8.0 to 3.9.1 and all my "StaticJsonDocument<512> doc;"
would not compile any longer. I have #include <ArduinoJson.h> in my code.

I reverted back to 3.8.0 and everything works once again. I reinstalled 3.9.1 and it was broken again, then removed it and tested with 3.9.0 and had the same problem. It isn't until I put 3.8.0 back in that the issue goes away.

Stack Trace

I have the arduino nano so I have no debug option with this board.

Minimal Reproductible Example (MRE)

#include <ArduinoJson.h>

StaticJsonDocument<256> doc;
doc["modeTime"] = readModeTime;
doc["tempTarget"] = readTempTarget;

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions