StrongTypedId.NewtonSoft 2.0.0

dotnet add package StrongTypedId.NewtonSoft --version 2.0.0                
NuGet\Install-Package StrongTypedId.NewtonSoft -Version 2.0.0                
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.
<PackageReference Include="StrongTypedId.NewtonSoft" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StrongTypedId.NewtonSoft --version 2.0.0                
#r "nuget: StrongTypedId.NewtonSoft, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StrongTypedId.NewtonSoft as a Cake Addin
#addin nuget:?package=StrongTypedId.NewtonSoft&version=2.0.0

// Install StrongTypedId.NewtonSoft as a Cake Tool
#tool nuget:?package=StrongTypedId.NewtonSoft&version=2.0.0                

StrongTypedId.NewtonSoft

This package provides support for using StrongTypedId with the NewtonSoft JSON serializer.

Usage

Add a NewtonSoft.Json.JsonConverter similarly to the built-in converters:

[TypeConverter(typeof(StrongTypedIdTypeConverter<UserId, Guid>))]
[StrongTypedIdJsonConverter<UserId, Guid>]
[Newtonsoft.Json.JsonConverter(typeof(NewtonSoftJsonConverter<UserId, Guid>))]
public class UserId: StrongTypedId<UserId, Guid>
{
	public UserId(Guid value) : base(value)
	{
	}
}

Notice how you can have both JsonConverters applied simultaneously to support both WebAPI and NewtonSoft at the same time.

Documentation

Auto generated documentation via DocFx is available here: https://steffenskov.github.io/StrongTypedId/

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 61 12/30/2024
1.9.2 8,056 11/15/2024
1.9.1 94 11/13/2024
1.9.0 102 11/11/2024
1.8.0 14,117 8/26/2024
1.7.0 15,748 5/10/2024
1.6.6 8,192 2/9/2024
1.6.5 320 2/5/2024
1.6.4 174 1/31/2024
1.6.3 699 1/8/2024
1.6.2 5,660 10/10/2023
1.6.1 410 9/8/2023
1.6.0 185 7/18/2023
1.5.1 211 7/15/2023
1.5.0 217 7/15/2023
1.4.3 188 7/11/2023
1.4.2 188 7/11/2023
1.4.1 189 7/11/2023
1.4.0 180 7/10/2023
1.3.0 201 5/21/2023
1.2.0 358 1/21/2023
1.1.5 1,633 8/5/2022
1.1.4 1,331 7/10/2022
1.1.3 441 7/10/2022
1.1.2 436 5/12/2022
1.1.1 426 3/12/2022