How can i configure ASP.NET Core Web Api controller to return pretty formatted json for Development
enviroment 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"
}