1.14.0-alpha.0 • Published 2 months ago
@johefe/perfsee-jsonr v1.14.0-alpha.0
jsonr
JSON with references
Example
import JSONR from '@johefe/perfsee-jsonr'
const jsonrStr = JSONR.stringify({ hello: "world" })
const obj = JSONR.parse(jsonrStr)
Format
const obj = { a: { hello: 'world', foooobar: 1 }, b: [] as any[] }
obj.b.push(obj.a, obj.a, obj.a)
const jsonrStr = JSONR.stringify(obj)
jsonrStr ->
{
"a": {
"hello": "world",
"foooobar"$0: 1
},
"b": [
{
"hello"$1: "world"$2,
$0: 1
},
{
$1:$2,
$0: 1
},
{
$1:$2,
$0: 1
}
]
}
1.13.3-alpha.0
2 months ago
1.14.0-alpha.0
2 months ago
1.13.4-alpha.0
2 months ago
1.13.2-alpha.0
2 months ago
1.13.1-alpha.0
2 months ago
1.12.7-alpha.0
2 months ago