Index: pkg/polymer/lib/component_build.dart |
diff --git a/pkg/polymer/lib/component_build.dart b/pkg/polymer/lib/component_build.dart |
index 316124eb45feb2614fb2f3e12b31841d9e559988..478018e873eff95d8b99f99bc99d09319877ea8f 100644 |
--- a/pkg/polymer/lib/component_build.dart |
+++ b/pkg/polymer/lib/component_build.dart |
@@ -19,8 +19,8 @@ |
library build_utils; |
import 'dart:async'; |
+import 'dart:convert'; |
import 'dart:io'; |
-import 'dart:json' as json; |
import 'package:args/args.dart'; |
import 'dwc.dart' as dwc; |
@@ -84,7 +84,7 @@ Future<List<dwc.CompilerResult>> build(List<String> arguments, |
if (machineFormat) { |
lastTask = lastTask.then((res) { |
appendMessage(Map jsonMessage) { |
- var message = json.stringify([jsonMessage]); |
+ var message = JSON.encode([jsonMessage]); |
if (shouldPrint) print(message); |
res.messages.add(message); |
} |