Skip to content

How to rename a key during looping? #893

Description

@gestern

I want to change key within a loop. Is it possible? How? For example, having a code:

for (auto& a : json::iterator_wrapper(b.value())) {
                auto aname = a.key();

How to rename a.key()? Looks like it's not described itself by documentation.

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

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions