lon
lon is another json that supports:
- array holes
- circular references
NaN
,Infinity
,-Infinity
- distinguish
undefined
fromnull
- distinguish
-0
from0
install
npm install lon
usage
var LON = ;var a = foo: 'bar' undefined null 0 -0 ;a; console; // '[1,u,n,4,5,,0,],{2:3},"foo","bar",0,-0' ; // ok
class instance
var assert = ;var LON = ; { thisa = a; thisb = b; thisc = this;} var a = 1 2; var str = LON; // 'A{1:2,3:4,5:0},"a",1,"b",2,"c"'var obj = LON; ; // okassert; // okassert; // okassert; // ok
license
distributed under the zlib license