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
- Host: GitHub
- URL: https://github.com/131/jsonb
- Owner: 131
- Created: 2015-06-05T00:27:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T01:48:43.000Z (about 11 years ago)
- Last Synced: 2025-02-17T09:16:45.153Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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