Lines Matching refs:jsonObj
84 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString() argument
86 …bool res = jsonObj.contains(key) && jsonObj[key].is_string() && jsonObj[key].size() <= MAX_MESSAGE… in IsString()
93 bool IsInt32(const nlohmann::json &jsonObj, const std::string &key) in IsInt32() argument
95 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_integer() && jsonObj[key] >= INT32_MIN … in IsInt32()
96 jsonObj[key] <= INT32_MAX; in IsInt32()
103 bool IsUint32(const nlohmann::json &jsonObj, const std::string &key) in IsUint32() argument
105 bool res = jsonObj.contains(key) && jsonObj[key].is_number_unsigned() && jsonObj[key] >= 0 && in IsUint32()
106 jsonObj[key] <= UINT32_MAX; in IsUint32()
113 bool IsInt64(const nlohmann::json &jsonObj, const std::string &key) in IsInt64() argument
115 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_integer() && jsonObj[key] >= INT64_MIN … in IsInt64()
116 jsonObj[key] <= INT64_MAX; in IsInt64()
123 bool IsArray(const nlohmann::json &jsonObj, const std::string &key) in IsArray() argument
125 bool res = jsonObj.contains(key) && jsonObj[key].is_array(); in IsArray()
132 bool IsBool(const nlohmann::json &jsonObj, const std::string &key) in IsBool() argument
134 bool res = jsonObj.contains(key) && jsonObj[key].is_boolean(); in IsBool()
145 nlohmann::json jsonObj; in ConvertMapToJsonString() local
147 jsonObj[it.first] = it.second; in ConvertMapToJsonString()
149 jsonStr = jsonObj.dump(); in ConvertMapToJsonString()