1.0.1 • Published 7 years ago

safer-json-stringify v1.0.1

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

deadsimple JSON.stringify which cares less (omits decircularizes values)

Build Status

Usage

require('safer-json-stringify')

JSON.stringify( yourcircularjson )

Why

npm.io

I tried safe-json-stringify which didn't do what i wanted:

  • didn't patch JSON.stringify
  • didn't proxy all arguments to the original JSON.stringify (like JSON.stringify(foo,null,2))
  • introduces null-values which breaks json-format

This is a really simple patch which only patches the input only, and proxies all arguments