Regira.Serializing.Newtonsoft 6.1.2

dotnet add package Regira.Serializing.Newtonsoft --version 6.1.2
                    
NuGet\Install-Package Regira.Serializing.Newtonsoft -Version 6.1.2
                    
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="Regira.Serializing.Newtonsoft" Version="6.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Regira.Serializing.Newtonsoft" Version="6.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Regira.Serializing.Newtonsoft" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Regira.Serializing.Newtonsoft --version 6.1.2
                    
#r "nuget: Regira.Serializing.Newtonsoft, 6.1.2"
                    
#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.
#:package Regira.Serializing.Newtonsoft@6.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Regira.Serializing.Newtonsoft&version=6.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Regira.Serializing.Newtonsoft&version=6.1.2
                    
Install as a Cake Tool

Regira Serializing

Regira Serializing provides JSON serialisation via the ISerializer contract defined in Common.

Projects

Project Package Backend
Serializing.Newtonsoft Regira.Serializing.Newtonsoft Newtonsoft.Json

Installation

<PackageReference Include="Regira.Serializing.Newtonsoft" Version="6.*" />

JsonSerializer

Implements ISerializer. Registers as a singleton in most consuming projects.

ISerializer json = new Regira.Serializing.Newtonsoft.Json.JsonSerializer();

string s    = json.Serialize(myObject);
MyType obj  = json.Deserialize<MyType>(s)!;
object dyn  = json.Deserialize(s, typeof(MyType))!;

Options

Property Type Default Description
EnumAsString bool true Serialise enums as their name, not integer
BoolAsNumber bool true Serialise bool as 1/0
IgnoreNullValues bool true Omit null properties
WriteIndented bool false Pretty-print JSON
ISerializer json = new JsonSerializer(new JsonSerializer.Options
{
    EnumAsString  = true,
    WriteIndented = true
});

Built-in converters

Converter Handles Registered
StringEnumConverter enum ↔ name when EnumAsString is true
BoolNumberConverter bool0/1 when BoolAsNumber is true
DateOnlyJsonConverter DateOnly always
DateAndTimeConverter DateTime / DateTimeOffset always

Independent of converters, the serializer always uses camelCase property naming (contract resolver) and ignores reference loops (ReferenceLoopHandling.Ignore).

DI Registration

services.AddSingleton<ISerializer, Regira.Serializing.Newtonsoft.Json.JsonSerializer>();

License

Apache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Regira.Serializing.Newtonsoft:

Package Downloads
Regira.Invoicing.Billit

Billit API integration for invoicing in Regira.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.1.2 77 8/16/2026
6.1.1 97 8/12/2026
6.1.0 116 8/10/2026