#ifndef RFL_JSON_SAVE_HPP_ #define RFL_JSON_SAVE_HPP_ #include #include #include #include "rfl/Result.hpp" #include "rfl/io/save_string.hpp" #include "rfl/json/write.hpp" namespace rfl { namespace json { template Result save(const std::string& _fname, const T& _obj) { return rfl::io::save_string(write(_obj)); } } // namespace json } // namespace rfl #endif