How can I configure ASP.NET Core Web API controller to return pretty formatted JSON content for the Development environment only?
By default, it returns something like:
{"id":1,"code":"4315"} I would like to have indents in the response for readability:
{ "id": 1, "code": "4315" }