Libraries
CompactData Libraries typically follow conventions set by JSON libraries so should be familiar to developers that have worked with JSON. For beginners, we’d recommend taking a look at the example implementations for your language of choice.
JavaScript
- Available as an npm module
require("@numtechnology/compactdata")
. parse
converts a CompactData string to a JavaScript Object.stringify
converts a JavaScript object to a CompactData string.- Example implementations available for:
- Source code for compactdata-ts available on GitHub
Ruby
- Available as a RubyGem named
compactdata
. parse
converts a CompactData string to a Ruby object.generate
converts a Ruby object to a CompactData string.- Example implementation available for CompactData using Ruby.
- Source code for compactdata-ruby available on GitHub
Python
- Available as a PyPI package named
compactdata
. loads
converts a CompactData string to a Python object.dumps
converts a Python object to a CompactData string.- Example implementation available for CompactData using Python.
- Source code for compactdata-python available on GitHub
Create one
We welcome contributions from the open source community. Anyone can build a parser based on the specification. If you do build a CompactData library, please add it to this repository by making a Pull Request.
Join the Community
For help, support or to collaborate join the NUM Technology Discord Server.