1.0.0 • Published 8 years ago

json-tkit v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Overview

json-tkit is a toolkit for JSON.

It supports serializing javascript object with circular references to JSON and vice versa.

Motivation

Inspiring JSON-js with NPM and TypeScript support.

Installation

npm install json-tkit

Usage

prerequest: import the module

import * as jsonx from "json-tkit";

Serialize an object with circular reference

let o: any = {};
o.o = o;

let s = jsonx.stringify(o);
console.log(s);

let o2 = jsonx.parse(s);
console.log(o2.o == o2);
1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago