safer-json-stringify
v1.0.1
Published
deadsimple JSON.stringify which cares less (omits decircularizes values)
Downloads
67
Maintainers
Readme
deadsimple JSON.stringify which cares less (omits decircularizes values)
Usage
require('safer-json-stringify')
JSON.stringify( yourcircularjson )
Why
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