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

Unified Diff: sdk/lib/_internal/dartdoc/lib/dartdoc.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: sdk/lib/_internal/dartdoc/lib/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
index f005351da8cae00cb969e400e910b7e5806b781d..1f94af616f8a5b2963bb768fe21453b96ebf0b50 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -17,9 +17,9 @@
library dartdoc;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
import 'dart:isolate';
-import 'dart:json' as json;
import 'dart:math';
import 'package:path/path.dart' as path;
@@ -778,7 +778,7 @@ class Dartdoc {
*/
void docNavigationJson() {
startFile('nav.json');
- writeln(json.stringify(createNavigationInfo()));
+ writeln(JSON.encode(createNavigationInfo()));
endFile();
}
/// Whether dartdoc is running from within the Dart SDK or the
@@ -802,7 +802,7 @@ class Dartdoc {
if (!tmpDir.existsSync()) {
tmpDir.createSync();
}
- String jsonString = json.stringify(createNavigationInfo());
+ String jsonString = JSON.encode(createNavigationInfo());
String dartString = jsonString.replaceAll(r"$", r"\$");
var filePath = path.join(tmpPath, 'client.dart');

Powered by Google App Engine
This is Rietveld 408576698