In JSON.NET you can:
JsonConvert.DefaultSettings = () => new JsonSerializerSettings {
DateTimeZoneHandling = DateTimeZoneHandling.Utc
};
Is there anything similar in System.Text.Json?
If there is not an option to set the default, can it be passed in manually?
Also, what is the default (Local, Utc, Unspecified)?
In JSON.NET you can:
Is there anything similar in
System.Text.Json?If there is not an option to set the default, can it be passed in manually?
Also, what is the default (
Local,Utc,Unspecified)?