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

Unified Diff: utils/apidoc/mdn/postProcess.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/postProcess.dart
diff --git a/utils/apidoc/mdn/postProcess.dart b/utils/apidoc/mdn/postProcess.dart
index 801e7d1c56f4b8fa690dd6f44bb29ee9fdba11e2..ee61723a0aab43464aaa72fd35e6aa80c7122a1c 100644
--- a/utils/apidoc/mdn/postProcess.dart
+++ b/utils/apidoc/mdn/postProcess.dart
@@ -6,13 +6,13 @@
library postProcess;
+import 'dart:convert';
import 'dart:io';
-import 'dart:json' as json;
import 'util.dart';
void main() {
// Database of code documentation.
- Map<String, List> database = json.parse(
+ Map<String, List> database = JSON.decode(
new File('output/database.json').readAsStringSync());
final filteredDb = {};
final obsolete = [];
@@ -33,6 +33,6 @@ void main() {
}
}
}
- writeFileSync("output/database.filtered.json", json.stringify(filteredDb));
- writeFileSync("output/obsolete.json", json.stringify(obsolete));
+ writeFileSync("output/database.filtered.json", JSON.encode(filteredDb));
+ writeFileSync("output/obsolete.json", JSON.encode(obsolete));
}

Powered by Google App Engine
This is Rietveld 408576698