I am using jsoncpp to read settings from a JSON file.
I would like to have two cascading settings file, say MasterSettings.json
and LocalSettings.json
where LocalSettings is a subset of MasterSettings. I would like to load MasterSettings first and then LocalSettings. Where LocalSettings has a value that differs from MasterSettings, that value would overwrite the one from MasterSettings. Much like the cascade in CSS.
Is there any elegant way to do this with jsoncpp?