Lines Matching refs:json
178 void RuntimeClient::RecvReply(std::unique_ptr<PtJson> json)
180 if (json == nullptr) {
181 LOGE("arkdb: json parse error");
185 if (!json->IsObject()) {
186 LOGE("arkdb: json parse format error");
187 json->ReleaseRoot();
192 Result ret = json->GetInt("id", &replyId);
199 HandleHeapUsage(std::move(json));
201 HandleGetProperties(std::move(json), replyId);
203 LOGI("arkdb: Runtime replay message is %{public}s", json->Stringify().c_str());
225 void RuntimeClient::HandleGetProperties(std::unique_ptr<PtJson> json, const int &id)
227 if (json == nullptr) {
228 LOGE("arkdb: json parse error");
232 if (!json->IsObject()) {
233 LOGE("arkdb: json parse format error");
234 json->ReleaseRoot();
239 Result ret = json->GetObject("result", &result);
282 void RuntimeClient::HandleHeapUsage(std::unique_ptr<PtJson> json)
284 if (json == nullptr) {
285 LOGE("arkdb: json parse error");
289 if (!json->IsObject()) {
290 LOGE("arkdb: json parse format error");
291 json->ReleaseRoot();
296 Result ret = json->GetObject("result", &result);