>>105683944you are a retard. in C++ parsing doesnโt automatically map JSON keys to struct fields by name. Instead, you define how to map the JSON to your object by hand like this
void from_json(const json& j, MyType& obj) {
j.at("some_json_key").get_to(obj.member_variable);
}
which gets very repetitive after a while. this is grudgework that reflection can save you from.
in other languages with reflection you can just say:
var myobj = json.parse("file.json");
>the unity game engine also uses reflection to showcase your variables on the ui (pic related).>oh shit we didn't have C++ debuggers until now???what does showing objects dynamically on the UI have to do with debugging? you truly are a fucking retard.
you are the embodiment of dunning-kruger