Lines Matching defs:data
46 const nlohmann::json &jsonObject, const std::string &key, dataType &data, ArrayType arrayType, int32_t &parseResult)
64 data = jsonObject.at(key).get<T>();
75 data = jsonObject.at(key).get<T>();
85 data = jsonObject.at(key).get<T>();
99 const std::string &key, dataType &data, JsonType jsonType, bool isNecessary, int32_t &parseResult,
113 data = jsonObject.at(key).get<T>();
121 data = jsonObject.at(key).get<T>();
129 data = jsonObject.at(key).get<T>();
137 CheckArrayType<T>(jsonObject, key, data, arrayType, parseResult);
145 data = jsonObject.at(key).get<T>();
173 bool ParseInfoFromJsonStr(const char *data, T &t)
175 if (data == nullptr) {
176 HILOG_DEBUG("%{public}s failed due to data is nullptr", __func__);
180 nlohmann::json jsonObject = nlohmann::json::parse(data, nullptr, false);
182 HILOG_DEBUG("%{public}s failed due to data is discarded", __func__);