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

Side by Side Diff: frog/lib/json_frog.dart

Issue 8972004: Rename and fix json frog library in SDK (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("json"); 5 #library("json");
6 #native("json.js"); 6 #native("json_frog.js");
7 7
8 /** 8 /**
9 * Dart interface to JavaScript objects and JSON. 9 * Dart interface to JavaScript objects and JSON.
10 * (The native method implementations are in json.js.) 10 * (The native method implementations are in json.js.)
11 */ 11 */
12 class JSON native 'JSON' { 12 class JSON native 'JSON' {
13 13
14 /** 14 /**
15 * Takes a string in JSON notation and returns the value it 15 * Takes a string in JSON notation and returns the value it
16 * represents. The resulting value is one of the following: 16 * represents. The resulting value is one of the following:
(...skipping 12 matching lines...) Expand all
29 * in JSON. A representable value is one of the following: 29 * in JSON. A representable value is one of the following:
30 * null 30 * null
31 * a bool 31 * a bool
32 * a double 32 * a double
33 * a String 33 * a String
34 * an Array of values (recursively) 34 * an Array of values (recursively)
35 * a Map from property names to values (recursively) 35 * a Map from property names to values (recursively)
36 */ 36 */
37 static String stringify(Object value) native; 37 static String stringify(Object value) native;
38 } 38 }
OLDNEW
« no previous file with comments | « frog/lib/json.js ('k') | frog/lib/json_frog.js » ('j') | tools/create_sdk.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698