safe-sortedjson
v1.0.8
Published
sortedjson, guarded against recursion and some unicode confusion.
Downloads
30
Readme
safe-sortedjson
sortedjson, guarded against recursion and some unicode confusion.
API
This module exports one function:
safeSortedJsonify(data[, opts])
opts
is an optional options object that supports these keys:
- All the options from
deepsortobj.
- However, if
circular
is false-y (e.g. missing), it will default to a function that always returns the string'[Circular]'
.
- However, if
replacer
,space
: As described in sortedjson.undef
: What to return if(data === undefined)
. Default:undefined
Known issues
- Needs more/better tests and docs.
License
ISC