CompactData is a compact data serialisation format
JSON
{"data":{"is":["v","e","r","b","o","s","e"]}}
CompactData
data(is[c;o;m;p;a;c;t])

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

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.

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.

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.