Skip to content

Insertion into nested json field #621

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions