This package has been deprecated

Author message:

Do not use

@meteor-it/ajson
TypeScript icon, indicating that this package has built-in type declarations

0.4.20 • Public • Published

AJSON

AJSON = JSON + More data types

Types supported

  • Infinity
  • -Infinity
  • NaN
  • RegExp
  • Date
  • Buffer
  • undefined
  • Function

Usage

import AJSON from '@meteor-it/ajson';

const a = AJSON.stringify({
    a: Infinity,
    b: -Infinity,
    c: NaN,
    d: /[a-z]+/ig,
    e: new Date(),
    f: new Buffer([0xf6,0xcf]),
    g: undefined,
    h: (a,b) => a+b;
});

const b = AJSON.parse(a);

// b will have the same props as a

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @meteor-it/ajson

      Weekly Downloads

      1

      Version

      0.4.20

      License

      MIT

      Unpacked Size

      57 kB

      Total Files

      7

      Last publish

      Collaborators

      • f6cf
      • lach