OLD | NEW |
| (Empty) |
1 /** | |
2 * This package contains a complete implementation of [JSON](http://json.org/). | |
3 * | |
4 * [JsonParser] creates a nested Dart objects from a given JSON string. For | |
5 * example the following code prints `{a: 1, b: [2, 3.4], c: false}`: | |
6 * | |
7 * var json = new JsonParser(); | |
8 * var result = json.parse('{"a": 1, "b": [2, 3.4], "c": false}'); | |
9 * print(result.value); // {a: 1, b: [2, 3.4], c: false} | |
10 * | |
11 * The grammar definition [JsonGrammar] can be subclassed to construct other | |
12 * objects. | |
13 */ | |
14 library json; | |
15 | |
16 import 'dart:collection'; | |
17 import 'package:petitparser/petitparser.dart'; | |
18 | |
19 part 'src/json/grammar.dart'; | |
20 part 'src/json/parser.dart'; | |
OLD | NEW |