Is it not possible to stringify an Error using JSON.stringify?

The Solution to Is it not possible to stringify an Error using JSON.stringify? is


JSON.stringify(err, Object.getOwnPropertyNames(err))

seems to work

[from a comment by /u/ub3rgeek on /r/javascript] and felixfbecker's comment below

~ Answered on 2014-10-05 04:57:05


Most Viewed Questions: