How to handle error from JSON.parse · Issue #61 · axios/axios

The transformRequest method attempts to parse JSON, but swallows any error in an empty catch statement. This results in the stringified form of the response body to be returned should the JSON be m...