Index: samples/chat/dart_client/chat.dart |
diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart |
index d5be28b5f8cea8e5440e4f3a0a4d442900604206..84786a8ebe654586ebb694e6d7231676dc96482f 100644 |
--- a/samples/chat/dart_client/chat.dart |
+++ b/samples/chat/dart_client/chat.dart |
@@ -4,7 +4,7 @@ |
library chat; |
import 'dart:html'; |
-import 'dart:json'; |
+import 'dart:json' as jsonlib; |
void main() { |
new Chat().start(); |
@@ -163,14 +163,14 @@ class Chat { |
request.on.readyStateChange.add((Event event) { |
if (request.readyState != 4) return; |
if (request.status == 200) { |
- onSuccess(JSON.parse(request.responseText)); |
+ onSuccess(jsonlib.parse(request.responseText)); |
} else { |
onError(); |
} |
}); |
request.open("POST", url, true); |
request.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"); |
- request.send(JSON.stringify(json)); |
+ request.send(jsonlib.stringify(json)); |
return request; |
} |