Skip to content

Overriding default values? #1083

Description

@simulationcloud

I have a json file that I read in using nlohmann:json. It contains nested dicts/lists that are configurations specified by users.

Only when a user specifies a value in this file (read in to a json object) should it override the default value, which is specified by another json object.

My question is: what's the easiest way to replace all the items in one json object with that of another json object, if that item exists in the other json object?

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