Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Unified Diff: tools/ddbg.dart

Issue 23596007: Remove usage of dart:json. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/ddbg.dart
diff --git a/tools/ddbg.dart b/tools/ddbg.dart
index 29a86f43ca7f5ec4560b566a5ecbfab936b0816b..50f066f8d6305398d6ec94a39d1c0671f8eea805 100644
--- a/tools/ddbg.dart
+++ b/tools/ddbg.dart
@@ -7,7 +7,6 @@
import "dart:convert";
import "dart:io";
-import "dart:json" as json;
import "dart:async";
@@ -69,9 +68,9 @@ Future sendCmd(Map<String, dynamic> cmd) {
int id = cmd["id"];
outstandingCommands[id] = completer;
if (verbose) {
- print("sending: '${json.stringify(cmd)}'");
+ print("sending: '${JSON.encode(cmd)}'");
}
- vmSock.write(json.stringify(cmd));
+ vmSock.write(JSON.encode(cmd));
return completer.future;
}
@@ -462,7 +461,7 @@ void handlePausedEvent(msg) {
void processVmMessage(String jsonString) {
- var msg = json.parse(jsonString);
+ var msg = JSON.decode(jsonString);
if (msg == null) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698