15 : payload_(payload) {}
24 return "application/json";
View for rendering JSON using nlohmann::json, with automatic content type.
JsonView(const nlohmann::json &payload)
std::string getContentType() const override
Return the MIME content type for this view.
std::string render(const std::map< std::string, std::string > &context={}) const override
Render the view body.