Skip to content

[7.0.0] Using JsonVariantConst causes "no matching function" error #2019

@BlueAndi

Description

@BlueAndi

Example code for reproduction:

    JsonDocument    jsonDoc;
    JsonObject      jsonAbc = jsonDoc["abc"].add<JsonObject>();

    jsonAbc["a"] = "a";
    jsonAbc["b"] = "b";
    jsonAbc["c"] = "c";

    {
        JsonObjectConst     value = jsonDoc["abc"];
        JsonVariantConst    jsonA = value["a"]; /* ArduinoJson/Object/JsonObjectConst.hpp:105:38: error: no matching function for call to 'ArduinoJson::V700HB4::detail::ObjectData::getMember(const ArduinoJson::V700HB4::detail::ObjectData* const&, ArduinoJson::V700HB4::detail::StringAdapter<const char*, void>::AdaptedString)' */
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv7ArduinoJson 7

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions