Use the [] operator to shorten the code. E.g. instead of:
auto width = resolution->GetProperty("width")->GetValueNumber();
i would prefer something short(er) like:
auto width = resolution["width"].AsInt();
This was just a single example, this should work where ever possible.