|
| static int | getValue (const std::string &oriStr, std::string &result, const std::string &type="value", const std::string &name="a", const int &num=0) |
| | 提取 JSON 字符串中指定字段的值或嵌套结构。 更多...
|
| |
| static std::string | toString (const Json::Value &val) |
| | 将 Json::Value 转换为字符串。 更多...
|
| |
| static Json::Value | toJsonArray (const std::string &str) |
| | 解析 JSON 字符串为 Json::Value。 更多...
|
| |
| template<class T1 , class T2 > |
| static std::string | createJson (T1 first, T2 second) |
| | 创建仅包含一个键值对的 JSON 字符串。 更多...
|
| |
| template<class T1 , class T2 , class... Args> |
| static std::string | createJson (T1 first, T2 second, Args...args) |
| | 创建多个键值对组成的 JSON 字符串(递归变参模板)。 更多...
|
| |
| template<class T > |
| static std::string | createArray (T first) |
| | 创建只包含一个元素的 JSON 数组字符串。 更多...
|
| |
| template<class T , class... Args> |
| static std::string | createArray (T first, Args...args) |
| | 创建多个元素组成的 JSON 数组字符串(递归变参模板)。 更多...
|
| |
| static std::string | jsonAdd (const std::string &a, const std::string &b) |
| | 将两个 JSON 字符串拼接为一个有效的 JSON(适用于对象或数组拼接)。 更多...
|
| |
| static std::string & | jsonFormatify (const std::string &a, std::string &b) |
| | 将格式化后的 JSON 字符串去除缩进、空格等变成紧凑格式。 更多...
|
| |
| static std::string & | jsonToUTF8 (const std::string &input, std::string &output) |
| | 将 JSON 字符串中的 转换为 UTF-8 字符。 更多...
|
| |