Absent function for parsing the top-level json object. Now I have to write something like this manually:
json_autogenerated_classes::Units units;
auto json = LoadFile();
rapidjson::Document doc;
doc.Parse(json.c_str());
FromJson(doc["units"], units);