| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |