0.0.6 • Published 7 years ago

hybrid-json v0.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Hybrid JavaScript Object Notation (HJSON) parser / stringifier

Parses hybrid JSON like:

{ a: 1, b: "2", c: '3', "d": [1, "2", '3'] }

Installation:

$ npm i hybrid-json

Usage:

var HJSON = require('hybrid-json')

var obj = HJSON.parse('{ a: 1, b: "2", c: \'3\', "d": [1, "2", \'3\'] }')

console.log(obj)
// { a: 1, b: '2', c: '3', d: [ 1, '2', '3' ] }

var json = HJSON.stringify(obj)

console.log(json)
// {"a":1,"b":"2","c":"3","d":[1,"2","3"]}
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago