Index: packages/petitparser/lib/json.dart |
diff --git a/packages/petitparser/lib/json.dart b/packages/petitparser/lib/json.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94fa212ba614efe0e6584cec8d0edfcfee50af7b |
--- /dev/null |
+++ b/packages/petitparser/lib/json.dart |
@@ -0,0 +1,18 @@ |
+/// This package contains a complete implementation of [JSON](http://json.org/). |
+/// |
+/// [JsonParser] creates a nested Dart objects from a given JSON string. For |
+/// example the following code prints `{a: 1, b: [2, 3.4], c: false}`: |
+/// |
+/// var json = new JsonParser(); |
+/// var result = json.parse('{"a": 1, "b": [2, 3.4], "c": false}'); |
+/// print(result.value); // {a: 1, b: [2, 3.4], c: false} |
+/// |
+/// The grammar definition [JsonGrammar] can be subclassed to construct other |
+/// objects. |
+library petitparser.json; |
+ |
+import 'dart:collection'; |
+import 'petitparser.dart'; |
+ |
+part 'src/json/grammar.dart'; |
+part 'src/json/parser.dart'; |