as-serde-json

0.3.0 • Public • Published

as-serde-json

as-serde-json provides a JSONSerializer which implements serde-as Serializer.

JSONDeserializer class is currently not implemented.

Example

@serialize()
@deserialize()
class Person {
    name: string;
    gender: bool;
}

let person = JSONSerializer.serialize(Person{name: "yjhmelody", gender: true});

See __test__ for more examples.

Package Sidebar

Install

npm i as-serde-json

Weekly Downloads

28

Version

0.3.0

License

MIT

Unpacked Size

22.8 kB

Total Files

9

Last publish

Collaborators

  • yjhmelody