Type-safe JSON-encoding and JSON-decoding utilities for Dart.
A simple usage example:
import 'package:json_util/json_util.dart';
void main() {
const myJson = '{"hello":"world"}';
final decodedValue = DecodedValue.from(myJson);
final map = decodedValue.asMap();
final encodableValue = EncodableValue.map(map);
final yourJson = encodableValue.encode();
print(myJson == yourJson); // true
}
Please file feature requests and bugs at the issue tracker.