Use JSON (de)serialization
https://github.com/JairusSW/as-json/ provided a performant, spec-compatible, and ts-like api for (de)serialization of JSON. Here is a basic usage example.
as-json is currently going through a major rewrite. It should stay stable throughout the rewrite, but I cannot assure you it will not break. Please file an issue if you find any problems. It would be most helpful! :D
Installation
Install the library:
Install dependency for a transformer:
Add a transform to the asc
command (e.g. in package.json
):
Usage
Last updated