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

Unified Diff: pkg/http_server/lib/src/http_body_impl.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: pkg/http_server/lib/src/http_body_impl.dart
diff --git a/pkg/http_server/lib/src/http_body_impl.dart b/pkg/http_server/lib/src/http_body_impl.dart
index c48db0378a9c9712936a387de505e7e6373b17b3..b11864057b584e964303d243a1b9dfa5bc163b8f 100644
--- a/pkg/http_server/lib/src/http_body_impl.dart
+++ b/pkg/http_server/lib/src/http_body_impl.dart
@@ -115,7 +115,7 @@ class _HttpBodyHandler {
return asText(UTF8)
.then((body) => new _HttpBody(contentType,
"json",
- JSON.parse(body.body)));
+ JSON.decode(body.body)));
case "x-www-form-urlencoded":
return asText(ASCII)

Powered by Google App Engine
This is Rietveld 408576698