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

Unified Diff: utils/apidoc/mdn/prettyPrint.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: utils/apidoc/mdn/prettyPrint.dart
diff --git a/utils/apidoc/mdn/prettyPrint.dart b/utils/apidoc/mdn/prettyPrint.dart
index 007127969459dc3cc8ba816050a8fa5543582c1c..3e5c12a0eaff14658926f7380aa0db26303546e7 100644
--- a/utils/apidoc/mdn/prettyPrint.dart
+++ b/utils/apidoc/mdn/prettyPrint.dart
@@ -4,8 +4,8 @@
library prettyPrint;
+import 'dart:convert';
import 'dart:io';
-import 'dart:json' as json;
import 'util.dart';
String orEmpty(String str) {
@@ -51,7 +51,7 @@ int addMissing(StringBuffer sb, String type, Map members) {
void main() {
// Database of code documentation.
- final Map<String, Map> database = json.parse(
+ final Map<String, Map> database = JSON.decode(
new File('output/database.filtered.json').readAsStringSync());
// Types we have documentation for.

Powered by Google App Engine
This is Rietveld 408576698