| 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;
|
| }
|
|
|