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

Unified Diff: pkg/yaml/README.md

Issue 40323002: Remove dart:json (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bad merge in convert/json.dart, a few other bugs. Updated co19 expectations. Created 7 years, 2 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: pkg/yaml/README.md
diff --git a/pkg/yaml/README.md b/pkg/yaml/README.md
index ad7678fc8eea4fd62bff1e2a6dbf6c0b40c17e67..47a5419fa75a56cc1951b2513129af53eeea25d1 100644
--- a/pkg/yaml/README.md
+++ b/pkg/yaml/README.md
@@ -10,13 +10,13 @@ stream of documents. For example:
}
This library currently doesn't support dumping to YAML. You should use
-`stringify` from `dart:json` instead:
+`JSON.encode` from `dart:convert` instead:
- import 'dart:json' as json;
+ import 'dart:convert';
import 'package:yaml/yaml.dart';
main() {
var doc = loadYaml("YAML: YAML Ain't Markup Language");
- print(json.stringify(doc));
+ print(JSON.encode(doc));
}
The source code for this package is at <http://code.google.com/p/dart>.

Powered by Google App Engine
This is Rietveld 408576698