Lines Matching defs:json
58 void ExtractRule::ParseSegStatusCfg(const Json::Value& json)
60 if (!json.isMember(L1_SEG_STATUS)) {
61 HIVIEW_LOGE("failed to get json number %{public}s.", L1_SEG_STATUS.c_str());
65 Json::Value arrayObj = json[L1_SEG_STATUS];
69 HIVIEW_LOGI("json array has been resized to threshold value.");
85 void ExtractRule::ParseRule(const string& eventType, const Json::Value& json, const string& path)
87 for (auto iter = json.begin(); iter != json.end(); iter++) {
133 std::vector<std::string> ExtractRule::GetJsonArray(const Json::Value& json, const string& param)
135 if (json.isNull() || !json.isMember(param) || !json[param].isArray()) {
136 HIVIEW_LOGE("failed to get json array number %{public}s.\n", param.c_str());
140 int jsonSize = static_cast<int>(json[param].size());
143 HIVIEW_LOGI("json array has been resized to threshold value.");
147 result.push_back(json[param][i].asString());
200 HIVIEW_LOGE("failed to get json number %{public}s.", L1_SEG_STATUS.c_str());
227 HIVIEW_LOGI("json array has been resized to threshold value.");