Closed thirtified closed 6 years ago
safe-json-stringify currently doesn't support the formatting and replacement functions that JSON.stringify provides. Since the module uses JSON.stringify for the actual serialization, it is easy to accept and proxy the missing parameters.
JSON.stringify
Also added tests and a remark in the docs.
@thirtified Did you forget about this PR? I would very much like this functionality too. :)
@ath88 – I really did forget, sorry.
Removed the unneccessary comments and merging, yay 👍.
safe-json-stringify currently doesn't support the formatting and replacement functions that
JSON.stringify
provides. Since the module usesJSON.stringify
for the actual serialization, it is easy to accept and proxy the missing parameters.Also added tests and a remark in the docs.