NodaTime.Serialization.ServiceStackText 3.1.3

.NET Standard 2.0 .NET Framework 4.5
NuGet\Install-Package NodaTime.Serialization.ServiceStackText -Version 3.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package NodaTime.Serialization.ServiceStackText --version 3.1.3
<PackageReference Include="NodaTime.Serialization.ServiceStackText" Version="3.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NodaTime.Serialization.ServiceStackText --version 3.1.3
#r "nuget: NodaTime.Serialization.ServiceStackText, 3.1.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NodaTime.Serialization.ServiceStackText as a Cake Addin
#addin nuget:?package=NodaTime.Serialization.ServiceStackText&version=3.1.3

// Install NodaTime.Serialization.ServiceStackText as a Cake Tool
#tool nuget:?package=NodaTime.Serialization.ServiceStackText&version=3.1.3


ServiceStack.Text JSON serialization support for NodaTime v2. This library will work with v5.0 and later versions of ServiceStack.Text.

Typical Setup


Optional Setup

There are static extension methods to allow for optional fluent configuration.

Use Iso Interval Serializer


Use Iso Period Serializer


One-Off Serializer Setup

//You could create you own serializer by implementing IServiceStackSerializer<T>

Alternatively, you can create your own implementation of INodaSerializerSettings to suit your specific needs.

Default Serializers

The SerivceStack.Text serializer uses the same default serialization formats as those used in the Json.NET serializers. You can optionally change the Interval serializer to use the ISO 8601 Interval spec.


  • Serializer setup should only occur once in your application root.
  • Serialization setup should occur before any serialization occurs with ServiceStack.Text or there may be undesirable behavior.
  • If using with ServiceStack, serializer setup should occur before Init of the AppHost.
  • For Value types, this will also setup the nullable serializer for that value type.
  • Since this is a custom serializer for ServiceStack.Text, calls to JsConfig.Reset() will remove the custom serializers.

Using the Code

Continuous Integration

JetBrains TeamCity CI

Special Thanks to JetBrains for hosting this project!

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NodaTime.Serialization.ServiceStackText:

Package Downloads

Client library for

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.3 102,859 12/5/2019 84,799 5/2/2018 17,458 4/27/2017
1.2.18 135,767 7/13/2015
1.2.17 7,483 6/10/2014
1.2.8 1,023 3/4/2014
1.2.6 941 2/27/2014

Added support for AnnualDate.
     Remove support for .Net Standard 1.3