Skip to content

jmank88/ubjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages