2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/string.hpp" 4 #include "../stdlib/json.hpp" 16 err->append(
"json not complete yet!");
20 std::pair<bool, std::string> r = gson(j.
get_root(), o);
24 err->format_append(
"deserialize error=%s, json=[%s]",
void serialize(T &o, string &buf)
json_node & get_root(void)
bool deserialize(json &j, T &o, string *err=NULL)
const string & to_string(string *out=NULL) const
const string & to_string(string *out=NULL, bool add_space=false) const