error-to-json

Returns a JSON representation of an error (handles nested errors and calls nested toJSONs)

Browse on unpkg