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("dart:json"); |
6 | 6 |
7 // Pure Dart implementation of JSON protocol. | 7 // Pure Dart implementation of JSON protocol. |
8 | 8 |
9 /** | 9 /** |
10 * Utility class to parse JSON and serialize objects to JSON. | 10 * Utility class to parse JSON and serialize objects to JSON. |
11 */ | 11 */ |
12 class JSON { | 12 class JSON { |
13 /** | 13 /** |
14 * Parses [json] and build the corresponding object. | 14 * Parses [json] and build the corresponding object. |
15 */ | 15 */ |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 first = false; | 546 first = false; |
547 }); | 547 }); |
548 _sb.add('}'); | 548 _sb.add('}'); |
549 _seen.removeLast(); | 549 _seen.removeLast(); |
550 return; | 550 return; |
551 } else { | 551 } else { |
552 throw const JsonUnsupportedObjectType(); | 552 throw const JsonUnsupportedObjectType(); |
553 } | 553 } |
554 } | 554 } |
555 } | 555 } |
OLD | NEW |