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

Unified Diff: sdk/lib/_internal/pub/test/lish/utils.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/test/lish/utils.dart
diff --git a/sdk/lib/_internal/pub/test/lish/utils.dart b/sdk/lib/_internal/pub/test/lish/utils.dart
index 70020cfeda2754166f14c3deaa8b487c478b74ee..827928194c8163cc15d0d7b2fe1c2f9c94fef3ce 100644
--- a/sdk/lib/_internal/pub/test/lish/utils.dart
+++ b/sdk/lib/_internal/pub/test/lish/utils.dart
@@ -4,8 +4,8 @@
library lish.utils;
+import 'dart:convert';
import 'dart:io';
-import 'dart:json' as json;
import 'package:scheduled_test/scheduled_test.dart';
import 'package:scheduled_test/scheduled_server.dart';
@@ -30,7 +30,7 @@ void handleUploadForm(ScheduledServer server, [Map body]) {
request.response.headers.contentType =
new ContentType("application", "json");
- request.response.write(json.stringify(body));
+ request.response.write(JSON.encode(body));
request.response.close();
});
});

Powered by Google App Engine
This is Rietveld 408576698