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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/cache.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/pub/lib/src/command/cache.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/cache.dart b/sdk/lib/_internal/pub/lib/src/command/cache.dart
index 24c51244e62d6ece22e7d7c28189d0b586b5b550..122ee1c149d9314e349a9c3f4027e4060b316c26 100644
--- a/sdk/lib/_internal/pub/lib/src/command/cache.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/cache.dart
@@ -5,8 +5,8 @@
library pub.command.cache;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
-import 'dart:json' as json;
import '../command.dart';
import '../exit_codes.dart' as exit_codes;
@@ -43,7 +43,7 @@ class CacheCommand extends PubCommand {
// TODO(keertip): Add support for non-JSON format
// and check for --format flag
- log.message(json.stringify({'packages': packagesObj}));
+ log.message(JSON.encode({'packages': packagesObj}));
}
}

Powered by Google App Engine
This is Rietveld 408576698