Module msgpack
drewmca/msgpack
0.0.7
msgpack implementation in ballerina
Module Overview
this package exposes two functions, encode and decode,
which handle serialization to and from msgpack-encoded byte arrays.
public function encode(any data) returns byte[]; public function decode(byte[] data) returns any;
this package is NOT feature complete. feel free to contribute! see README.md and repository for completion.
usage
import ballerina/io; import drewmca/msgpack; json obj = {"hello": "world!"} byte[] encoded = msgpack:encode(obj); json decoded = msgpack:decode(encoded); io:println(decoded);