Faster implementation of JSON.stringify
Performance: This library ~50% faster than JSON.stringify
on larger objects/arrays
Note: This library doesn't handle Ciruclar references, instead of just replaces Circular reference to [Circular]
string, but doesn't throw error
- Performant
- Easy
- Auto-schema generating
We recommend install via npm
because of it's cache and flat node modules tree
npm i json-strify
then you able to import to Node.js/Browser easily
// Node.js
const JSONStringify = require('json-strify');
// ES6
import JSONStringify from 'json-strify';
JSONStringify(object: any): string
MIT