Tag Archives: System.Text.Json

.NET Core MVC Web API – control DateTime format in JSON output using JsonSerializerOptions

When creating API’s with .NET Core MVC, you can control the JSON output by adding JsonOptions to the controllers: This will ensure that when requesting application/json from a GET method, the format returned is JSON. You can then add Converters … Continue reading

Posted in .net, .NET Core, c# | Tagged , , , , | 1 Comment