Most mobile and web apps use JSON for tasks such as exchanging data with a web server. This page discusses Dart support for JSON serialization and deserialization: converting Dart objects to and from JSON.
The following libraries and packages are useful across Dart platforms:
Converters for both JSON and UTF-8 (the character encoding that JSON requires).
An easy-to-use code generation package. When you add some metadata annotations and use the builder provided by this package, the Dart build system generates serialization and deserialization code for you.
A powerful, opinionated alternative to json_serializable.
- JSON and serialization
- Shows how Flutter apps can serialize and deserialize both with dart:convert and with json_serializable.