Class NodaJsonSettings
A collection of converters and related settings for
Noda Time JSON parsing. This can be used to configure Newtonsoft.Json
serializers using the ConfigureForNodaTime(JsonSerializer, NodaJsonSettings)
and ConfigureForNodaTime(JsonSerializerSettings, NodaJsonSettings) extension
methods.
Since unstable
Availability netstandard2.0
Inherited Members
Namespace: NodaTime.Serialization.JsonNet
Assembly: NodaTime.Serialization.JsonNet.dll
Syntax
public sealed class NodaJsonSettings
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
Constructors
NodaJsonSettings()
Creates an instance with the default converters, using Tzdb for
time zone conversions.
Since unstable
Availability netstandard2.0
Declaration
public NodaJsonSettings()
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
NodaJsonSettings(IDateTimeZoneProvider)
Creates an instance with the default converters, using the specified IDateTimeZoneProvider
for time zone conversions.
Since unstable
Availability netstandard2.0
Declaration
public NodaJsonSettings(IDateTimeZoneProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IDateTimeZoneProvider | provider | The time zone provider to use. Must not be null. |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
Properties
AnnualDateConverter
The converter used for AnnualDate values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter AnnualDateConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
DateIntervalConverter
The converter used for DateInterval values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter DateIntervalConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
DateTimeZoneConverter
The converter used for DateTimeZone values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter DateTimeZoneConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
DurationConverter
The converter used for Duration values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter DurationConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
InstantConverter
The converter used for Instant values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter InstantConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
IntervalConverter
The converter used for Interval values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter IntervalConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
LocalDateConverter
The converter used for LocalDate values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter LocalDateConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
LocalDateTimeConverter
The converter used for LocalDateTime values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter LocalDateTimeConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
LocalTimeConverter
The converter used for LocalTime values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter LocalTimeConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
OffsetConverter
The converter used for Offset values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter OffsetConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
OffsetDateConverter
The converter used for OffsetDate values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter OffsetDateConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
OffsetDateTimeConverter
The converter used for OffsetDateTime values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter OffsetDateTimeConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
OffsetTimeConverter
The converter used for OffsetTime values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter OffsetTimeConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
PeriodConverter
The converter used for Period values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter PeriodConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.
ZonedDateTimeConverter
The converter used for ZonedDateTime values.
Since unstable
Availability netstandard2.0
Declaration
public JsonConverter ZonedDateTimeConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter |
Remarks
This type does not attempt to ensure any sort of thread safety.
The expect use is to create an instance, potentially modify some properties,
use it to configure a JsonSerializer or JsonSerializerSettings,
and then discard it.