#ifndef BOOK_JSON_H_ #define BOOK_JSON_H_ #include #include struct Book; std::string JsonToString(const Json::Value& json); Json::Value StringToJson(const std::string& str); Json::Value BookToJson(const Book& book); Book JsonToBook(const Json::Value& json); std::string BookToJsonString(const Book& book); bool JsonStringToBook(const std::string& json_str, Book* book); #endif // BOOK_JSON_H_