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

Unified Diff: pkg/json/lib/json.dart

Issue 23414005: Create json package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. 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
« no previous file with comments | « pkg/json/README.md ('k') | pkg/json/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/json/lib/json.dart
diff --git a/sdk/lib/json/json.dart b/pkg/json/lib/json.dart
similarity index 99%
copy from sdk/lib/json/json.dart
copy to pkg/json/lib/json.dart
index 5fd3a6ae20c0da9e60d0738eaa4e5959abbe91d7..58b6c796d6135abbc02ed18dda51d1c6ed7a2e98 100644
--- a/sdk/lib/json/json.dart
+++ b/pkg/json/lib/json.dart
@@ -6,7 +6,7 @@
* Utilities for encoding and decoding JSON (JavaScript Object Notation) data.
*/
-library dart.json;
+library json;
// JSON parsing and serialization.
@@ -66,9 +66,7 @@ class JsonCyclicError extends JsonUnsupportedObjectError {
*
* Throws [FormatException] if the input is not valid JSON text.
*/
-external parse(String json, [reviver(var key, var value)]);
-
-_parse(String json, reviver(var key, var value)) {
+parse(String json, [reviver(var key, var value)]) {
BuildJsonListener listener;
if (reviver == null) {
listener = new BuildJsonListener();
« no previous file with comments | « pkg/json/README.md ('k') | pkg/json/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698