131 / jsonb

json with binary data type support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonb

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

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

About

json with binary data type support


Languages

Language:JavaScript 100.0%