Lines Matching refs:json
316 void DebuggerClient::RecvReply(std::unique_ptr<PtJson> json)
318 if (json == nullptr) {
319 LOGE("arkdb: json parse error");
323 if (!json->IsObject()) {
324 LOGE("arkdb: json parse format error");
325 json->ReleaseRoot();
331 Result ret = json->GetString("method", &wholeMethod);
345 PausedReply(std::move(json));
348 sourceManager.EnableReply(std::move(json));
354 LOGI("arkdb: Debugger reply is: %{public}s", json->Stringify().c_str());
356 handleResponse(std::move(json));
359 void DebuggerClient::PausedReply(const std::unique_ptr<PtJson> json)
361 if (json == nullptr) {
362 LOGE("arkdb: json parse error");
366 if (!json->IsObject()) {
367 LOGE("arkdb: json parse format error");
368 json->ReleaseRoot();
373 Result ret = json->GetObject("params", ¶ms);
403 void DebuggerClient::handleResponse(std::unique_ptr<PtJson> json)
410 Result ret = json->GetObject("result", &result);
416 ret = json->GetInt("id", &id);
428 breakpoint.Createbreaklocation(std::move(json));
431 if (watchManager.HandleWatchResult(std::move(json), id)) {