Skip to content

Call of overloaded 'add(JsonArraySubscript)' is ambiguous #122

@mozgy

Description

@mozgy

Lets say that

JsonObject& data = { "foo":1, "nested": [ { "bar":2 } { "bar":3 } ... ] };
JsonArray& newdata = json.createArray();
JsonArray& tmp = data["nested"];

please add that following works

newdata.add( tmp[0] );

after #120 fix it's possible to do that with

String strTmp; tmp[0].printTo( strTmp ); newdata.add( strTmp );

but it looks a bit overkill using String buffer copy for that

TIA,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions