Is it possible to change the name/identifier of a member of a user defined type during runtime, so that something like the following would be possible.
file.json: "{name: "Peter", nums: [10, 13, 1]}"
JSONDocument d("file.json"); // Parses JSON File
d.name.key = "other_key";
d.other_key = "Alfred";
d.writeToFile("file.json");
file.json: "{other_key: "Alfred", nums: [10, 13, 1]}"
No, you cannot create members at runtime in C++.