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) |