jmank88 / ubjson

Go package for working with Universal Binary JSON - http://ubjson.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UBJSON GoDoc Build Status Go Report Card

A Go package implementing encoding and decoding of Universal Binary JSON (spec 12).

Features

  • Type specific methods for built-in types.

  • Automatic encoding via reflection for most types.

  • Custom encoding via Value interface.

  • Streaming support via Encoder/Decoder.

  • Support for optimized format.

  • Block format.

Usage

b, _ := ubjson.MarshalBlock(8)
// [U][8]

b, _ = ubjson.MarshalBlock("hello")
// [S][U][5][hello]

var v interface{}
...
b, _ = ubjson.Marshal(v)
// ...

See the GoDoc for more information and examples.

About

Go package for working with Universal Binary JSON - http://ubjson.org/

License:MIT License


Languages

Language:Go 100.0%