json_util 2.0.0 copy "json_util: ^2.0.0" to clipboard
json_util: ^2.0.0 copied to clipboard

Type-safe JSON-encoding and JSON-decoding utilities for Dart.

example/json_util_example.dart

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
}
0
likes
130
pub points
56%
popularity

Publisher

unverified uploader

Type-safe JSON-encoding and JSON-decoding utilities for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on json_util