Returns exceptions in form of JSON response for ASP.NET Core Web API.
Usage
To use the middleware in development environment, update your Configure
method of Startup
class
as below:
if (env.IsDevelopment())
{
app.UseDeveloperExceptionJsonResponse();
}