dartson 0.2.7 icon indicating copy to clipboard operation
dartson: ^0.2.7 copied to clipboard

Dart 2 incompatible

Dartson is a Dart library that can be used to convert Dart objects into a JSON string. It uses dart:mirrors reflection to rebuild the schema. It also works in dart2js using code transformers.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dartson

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dartson: ^0.2.7

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dartson/dartson.dart';
0
likes
0
pub points
43%
popularity

Publisher

unverified uploader

Dartson is a Dart library that can be used to convert Dart objects into a JSON string. It uses dart:mirrors reflection to rebuild the schema. It also works in dart2js using code transformers.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, barback, logging, source_maps, source_span

More

Packages that depend on dartson