Convert errors to JSON or to a good string. Develop faster with better error messages.
Function to get JSON friendly object from error (Node/V8 only).