Is it not possible to stringify error using JSON.stringify?
Also, Object.keys(err) wouldn't show any keys present with Error object.
Other observation: Error object has non standard property "stack" which I am trying to access. Error.prototype.stack provides with stack trace. In my attempts to stringify properties of Error(name, message and stack), any help is appreciated!
Following is the output from Chrome.
  > var err = new Error
    undefined
  > err
    Error
       at <anonymous>:1:11
   JSON.stringify(err)
  > "{}"
 
     
    