An open API service indexing awesome lists of open source software.

https://github.com/131/jsonb

json with binary data type support
https://github.com/131/jsonb

Last synced: about 1 year ago
JSON representation

json with binary data type support

Awesome Lists containing this project

README

          

# jsonb

Simple JSON replacer (for stringify & parse) that converts Buffer to base64.

``` js
var JSONB = require('jsonb')

var str = JSONB.stringify(new Buffer('hello there!'))

console.log(JSONB.parse(str)) //GET a BUFFER back
```

* For non buffer data, behave as a pure superset of native JSON
* `JSONB.parse(JSON.encode(foo)) = JSON.parse(JSONB.encode(foo))`

## License

MIT