json_string library

A simple and lightweight JSON data container for Dart and Flutter.

Classes

JsonString
A single piece of JSON data.

Mixins

Jsonable
An object directly encodable into a valid JSON.

Typedefs

JsonObjectDecoder<T extends Object>(Map<String, dynamic> json) → T
Transforms a JSON object representation (Map<String, dynamic>) into a Dart object.
JsonObjectEncoder<T extends Object>(T dartObject) Map<String, dynamic>
Transforms a Dart object into a JSON object representation (Map<String, dynamic>).

Exceptions / Errors

JsonDecodingError
Error thrown during a JSON decoding operation.
JsonEncodingError
Error thrown during a JSON encoding operation.
JsonFormatException
Exception thrown when a string does not have the expected JSON format and cannot be parsed.