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

Unified Diff: client/json/json.dart

Issue 9384021: Eliminate client/json, since we now have lib/json. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « no previous file | client/json/json.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/json/json.dart
===================================================================
--- client/json/json.dart (revision 4144)
+++ client/json/json.dart (working copy)
@@ -1,38 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#library("json");
-#native("json.js");
-
-/**
- * Dart interface to JavaScript objects and JSON.
- * (The native method implementations are in json.js.)
- */
-
-class JSON {
- /**
- * Takes a string in JSON notation and returns the value it
- * represents. The resulting value is one of the following:
- * null
- * a bool
- * a double
- * a String
- * an Array of values (recursively)
- * a Map from property names to values (recursively)
- */
- static Object parse(String jsonString) native;
-
- /**
- * Takes a value and returns a string in JSON notation
- * representing its value, or returns null if the value is not representable
- * in JSON. A representable value is one of the following:
- * null
- * a bool
- * a double
- * a String
- * an Array of values (recursively)
- * a Map from property names to values (recursively)
- */
- static String stringify(Object value) native;
-}
« no previous file with comments | « no previous file | client/json/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698