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

Unified Diff: pkg/intl/lib/src/lazy_locale_data.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/intl/lib/src/lazy_locale_data.dart
diff --git a/pkg/intl/lib/src/lazy_locale_data.dart b/pkg/intl/lib/src/lazy_locale_data.dart
index 90ff3a1053aec952d927f84ca51828fbacb53e4a..ecef1ab1c1a71ba89e7f273d9a40b996320c3c52 100644
--- a/pkg/intl/lib/src/lazy_locale_data.dart
+++ b/pkg/intl/lib/src/lazy_locale_data.dart
@@ -10,8 +10,8 @@
library lazy_locale_data;
import 'dart:async';
+import 'dart:convert';
import 'intl_helpers.dart';
-import 'dart:json' as json;
/**
* This implements the very basic map-type operations which are used
@@ -108,6 +108,6 @@ class LazyLocaleData {
* return another future that parses the JSON into a usable format.
*/
Future jsonData(Future input) {
- return input.then( (response) => json.parse(response));
+ return input.then( (response) => JSON.decode(response));
}
}

Powered by Google App Engine
This is Rietveld 408576698