Skip to content

update nested value in multi hierarchy json object #1084

Description

@haseebmazhar-aai

Hi, I was trying to integrate nlohmann json library in our project. I was stuck in an issue and could not find any workaround. The issue is I did not know about the level of JSON data and depending upon the key, I have to update the value and return the whole JSON object. The key and data can be of any level.
My json data would be like this
"logger": { "channels": { "log_configure": "acquired" }}
key would be like this logger.channels.log_configure.
I have to change the value of above key to "not acquired".
Is this functionality currently supported?

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