// R9: dump() with the default error handler throws on invalid UTF-8. #include #include std::string reply(const std::string& path) { return nlohmann::json{{"path", path}}.dump(); }