Lines Matching defs:json
42 json::Value RunInTerminalMessagePid::ToJSON() const {
43 return json::Object{{"kind", "pid"}, {"pid", static_cast<int64_t>(pid)}};
49 json::Value RunInTerminalMessageError::ToJSON() const {
50 return json::Object{{"kind", "error"}, {"value", error}};
56 json::Value RunInTerminalMessageDidAttach::ToJSON() const {
57 return json::Object{{"kind", "didAttach"}};
61 ParseJSONMessage(const json::Value &json) {
62 if (const json::Object *obj = json.getAsObject()) {
78 "Incorrect JSON message: " + JSONToString(json));
83 if (Expected<json::Value> json = io.ReadJSON(timeout))
84 return ParseJSONMessage(*json);
86 return json.takeError();