|
NIM PC Cross Platform SDK
|
JSON辅助方法 More...
#include "nim_wrapper_util/nim_json_util.h"#include <iostream>#include "nim_wrapper_util/convert_utf.h"Namespaces | |
| namespace | nim |
| namespace nim | |
Functions | |
| bool | nim::StrListToJsonString (const std::list< std::string > &list, std::string &out) |
| 将一个string类型的list组装成一个Json Array More... | |
| bool | nim::StrListToJsonString (const std::vector< std::string > &list, std::string &out) |
| 将一个string类型的list组装成一个Json Array More... | |
| bool | nim::JsonStrArrayToList (const nim_cpp_wrapper_util::Json::Value &array_str, std::list< std::string > &out) |
| 将一个string类型的Json Array解析成一个string类型的list More... | |
| bool | nim::JsonStrArrayToList (const nim_cpp_wrapper_util::Json::Value &array_str, std::vector< std::string > &out) |
| 将一个string类型的Json Array解析成一个string类型的vector More... | |
| bool | nim::JsonArrayStringToList (const std::string &array_str, std::list< std::string > &out) |
| 将一个string类型的Json Array解析成一个string类型的list More... | |
| bool | nim::JsonArrayStringToList (const std::string &array_str, std::vector< std::string > &out) |
| 将一个string类型的Json Array解析成一个string类型的vector More... | |
| bool | nim::ParseJsonValue (const std::string &content, nim_cpp_wrapper_util::Json::Value &values) |
| 解析JsonString More... | |
| bool | nim::ParseJsonValue (const char *content, nim_cpp_wrapper_util::Json::Value &values) |
| 解析JsonString More... | |
| std::string | nim::GetJsonStringWithNoStyled (const nim_cpp_wrapper_util::Json::Value &values) |
| 获得非格式化的Json string,传入SDK的json string格式要求为非格式化的,如果是格式化的json string可能会影响功能 More... | |
| nim_cpp_wrapper_util::Json::Value | nim::GetJsonValueFromJsonString (const std::string &json_string) |
| 解析JsonString More... | |
JSON辅助方法