1.1.1 • Published 7 years ago

jzon3 v1.1.1

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

JZON3

Simple and fast alternative to standard JSON global object. It extends standard functionality with circular references handling and support for other JS types, Date, Infinity, -Infinity and NaN.

Installation

$ npm install --save jzon3

Usage

  import JZON3 from 'jzon3';

  let foo = {
    name: 'foo',
    nan : NaN,
    '+inf' : Infinity,
    '-inf' : -Infinity,
    'null' : null
  };

  foo.foo=foo;

  let bar={
    name: 'bar',
    foo: foo,
    date: new Date('2016-08-01T01:02:03Z')
  };

 let barStr = JZON3.stringify(bar);
 let bar2 = JZON3.parse(barStr);
 assert.deepEqual(bar, bar2);

License

ISC

https://en.wikipedia.org/wiki/ISC_license

1.1.1

7 years ago

1.1.0

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago