now using rapidjson to generate map files