Use reviver and replacer in json type #1

Open
opened 2015-07-09 13:19:56 +00:00 by sitegui · 0 comments
sitegui commented 2015-07-09 13:19:56 +00:00 (Migrated from github.com)

Somehow tell the lib a replacer function to JSON.stringify and a reviver for JSON.parse

This would help with https://github.com/clubedaentrega/log-sink/issues/3

Note that message property is non-enumerable. Related discussion at http://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify

Somehow tell the lib a replacer function to JSON.stringify and a reviver for JSON.parse This would help with https://github.com/clubedaentrega/log-sink/issues/3 Note that `message` property is non-enumerable. Related discussion at http://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sitegui/js-binary#1
No description provided.