Skip to content

Insertion into nested json field #621

@karthiksheshadri

Description

@karthiksheshadri

Suppose one wants to insert iteratively into a nested field, for example:

for (auto& i : strings) {

j["Outer level"]["Inner level[i]"]=match[i];

}

pushback() does not do this and one cannot use a string type as index, i.e, j["Outer Level"][str] doesn't work - is there any way to do this?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions