rson 0.1.0

Dart native js
Flutter Android iOS web

A Dart serialization/deserialization library to convert Dart Objects into JSON and back.

example/rson_example.dart

import 'package:rson/rson.dart';
import 'package:rson/src/annotation/enable_rson.dart';

@Serializable()
class Entity {
  int a;
  double b;
  num c;
  String d;
  Object e;
  @Ignore()
  List<int> f;
  @SerializedName("g2")
  List<double> g;
}

@EnableRson()
class Entry {}

void main() {
  setup();
//  test();
}

void setup() {}

void test() {
  const Map<String, Object> json = {
    "a": 1,
    "b": 2.0,
    "c": 3.0,
    "d": "4.0",
    "e": 5,
  };
}
0
likes
90
pub points
0%
popularity

A Dart serialization/deserialization library to convert Dart Objects into JSON and back.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

cpdg128@gmail.com

License

MIT (LICENSE)

Dependencies

analyzer, build, build_config, glob, mustache, source_gen

More

Packages that depend on rson