| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart.json; | 5 #library("dart:json"); |
| 6 | 6 |
| 7 import 'dart:math'; | 7 #import('dart:math'); |
| 8 | 8 |
| 9 // JSON parsing and serialization. | 9 // JSON parsing and serialization. |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Error thrown by JSON serialization if an object cannot be serialized. | 12 * Error thrown by JSON serialization if an object cannot be serialized. |
| 13 * | 13 * |
| 14 * The [unsupportedObject] field holds that object that failed to be serialized. | 14 * The [unsupportedObject] field holds that object that failed to be serialized. |
| 15 * | 15 * |
| 16 * If an isn't directly serializable, the serializer calls the 'toJson' method | 16 * If an isn't directly serializable, the serializer calls the 'toJson' method |
| 17 * on the object. If that call fails, the error will be stored in the [cause] | 17 * on the object. If that call fails, the error will be stored in the [cause] |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 first = false; | 593 first = false; |
| 594 }); | 594 }); |
| 595 sb.add('}'); | 595 sb.add('}'); |
| 596 seen.removeLast(); | 596 seen.removeLast(); |
| 597 return true; | 597 return true; |
| 598 } else { | 598 } else { |
| 599 return false; | 599 return false; |
| 600 } | 600 } |
| 601 } | 601 } |
| 602 } | 602 } |
| OLD | NEW |