Closed beached closed 3 years ago
This is more generally said that a single sub member can describe the structure of the others.
struct ConfigV1 { string option1; }; struct ConfigV2 { vector<string> option1; };
The JSON document can have a mapped/non-mapped member that allows us to know which alternative to parse to.
Implemented with https://github.com/beached/daw_json_link/commit/53910a4c9ab03b5f8b2537a123b8ec2ecb044fcb
This is more generally said that a single sub member can describe the structure of the others.
The JSON document can have a mapped/non-mapped member that allows us to know which alternative to parse to.