json library

This package contains a complete implementation of JSON.

JsonParserDefinition builds a JSON parser for nested Dart objects from a given JSON string. For example the following code prints {a: 1, b: [2, 3.4], c: false}:

final json = new JsonParser();
final 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 JsonGrammarDefinition can be subclassed to construct other objects.

Classes

JsonGrammarDefinition
JSON grammar definition.
JsonParserDefinition
JSON parser definition.

Constants

jsonEscapeChars → const Map<String, String>