Json.NET : Serialization handling of DateTimeOffset

In the Startup.cs :

   public void ConfigureServices(IServiceCollection services)
   {
        services.AddControllers().AddJsonOptions(options =>
        {
            options.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
            options.SerializerSettings.DateParseHandling = DateParseHandling.DateTimeOffset;
            options.SerializerSettings.DateFormatHandling = DateFormatHandling.IsoDateFormat;

        });

   }