-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Overriding default values? #1083
Copy link
Copy link
Closed
Labels
solution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Description
Activity
Metadata
Metadata
Assignees
Labels
solution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
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?