Module msgpack

drewmca/msgpack

0.0.6

msgpack implementation in ballerina [//]: # (above is the module summary)

Module Overview

see msgpack.org 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;

usage

Copy
import ballerina/io;
import drewmca/msgpack;
json obj = {"hello": "world!"}
byte[] encoded = msgpack:encode(obj);
json decoded = msgpack:decode(encoded);
io:println(decoded);

Import

import drewmca/msgpack;Copy

Other versions

0.0.7

0.0.6

Metadata

Released date: over 2 years ago

Version: 0.0.6


Compatibility

Platform: any

Ballerina version: 2201.8.4

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 0


Weekly downloads