Index: samples/third_party/dromaeo/Dromaeo.dart |
diff --git a/samples/third_party/dromaeo/Dromaeo.dart b/samples/third_party/dromaeo/Dromaeo.dart |
index 2428f39ae06175acb0cd23106ebd88b4988714d0..12b0e9dde946ae1a2470595902035e346b9928b0 100644 |
--- a/samples/third_party/dromaeo/Dromaeo.dart |
+++ b/samples/third_party/dromaeo/Dromaeo.dart |
@@ -2,7 +2,7 @@ library dromaeo_test; |
import 'dart:html'; |
import 'dart:async'; |
-import 'dart:json' as json; |
+import "dart:convert"; |
import 'dart:math' as Math; |
import 'Suites.dart'; |
@@ -98,7 +98,7 @@ class Dromaeo { |
window.onMessage.listen( |
(MessageEvent event) { |
try { |
- final response = json.parse(event.data); |
+ final response = JSON.decode(event.data); |
_handler = _handler(response['command'], response['data']); |
} catch (e, stacktrace) { |
if (!(e is FormatException && |