Extensions.

WithIsoIntervalConverter(JsonSerializer) Method

Summary

Configures the given serializer to use NodaTime.Serialization.JsonNet.NodaConverters.IsoIntervalConverter. Any other converters which can convert NodaTime.Interval are removed from the serializer.

Syntax

public static JsonSerializer WithIsoIntervalConverter(this JsonSerializer serializer)

Parameters

Name Type Description
serializer JsonSerializer The existing serializer to add Noda Time converters to.

Return Value

Type Description
JsonSerializer The original serializer value, for further chaining.