TedToolkit.Results.SystemTextJson
2026.8.4
dotnet add package TedToolkit.Results.SystemTextJson --version 2026.8.4
NuGet\Install-Package TedToolkit.Results.SystemTextJson -Version 2026.8.4
<PackageReference Include="TedToolkit.Results.SystemTextJson" Version="2026.8.4" />
<PackageVersion Include="TedToolkit.Results.SystemTextJson" Version="2026.8.4" />
<PackageReference Include="TedToolkit.Results.SystemTextJson" />
paket add TedToolkit.Results.SystemTextJson --version 2026.8.4
#r "nuget: TedToolkit.Results.SystemTextJson, 2026.8.4"
#:package TedToolkit.Results.SystemTextJson@2026.8.4
#addin nuget:?package=TedToolkit.Results.SystemTextJson&version=2026.8.4
#tool nuget:?package=TedToolkit.Results.SystemTextJson&version=2026.8.4
TedToolkit.Results.SystemTextJson
TedToolkit.Results.SystemTextJson provides an explicit JSON union contract for both Result
arities without adding serializer dependencies to the core package.
Install
dotnet add package TedToolkit.Results.SystemTextJson
Register the converter factory on the serializer options used by the application:
using System.Text.Json;
using TedToolkit.Results.SystemTextJson;
var options = new JsonSerializerOptions();
options.Converters.Add(new ResultJsonConverterFactory());
The default wire shapes are:
{ "IsSuccess": true, "Value": "document.json" }
{ "IsSuccess": false, "FailureReason": 0 }
{ "IsSuccess": true }
The converter honors the configured property naming policy, case sensitivity, payload converters, and enum converters. It rejects uninitialized Results, contradictory branch properties, duplicate union properties, and failure values that are not declared enum members.
The application's serializer options are part of its wire contract. Changing naming or enum conversion settings can change stored JSON.
Target Frameworks
net6.0net7.0net8.0net9.0net10.0net472net48netstandard2.0netstandard2.1
The package uses the platform-provided System.Text.Json reference on net6.0 and net7.0. Other
targets use the centrally managed System.Text.Json package version.
License
Licensed under LGPL-3.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
-
.NETFramework 4.8
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
-
.NETStandard 2.0
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
-
.NETStandard 2.1
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
-
net10.0
- TedToolkit.Results (>= 2026.8.4)
-
net6.0
- TedToolkit.Results (>= 2026.8.4)
-
net7.0
- TedToolkit.Results (>= 2026.8.4)
-
net8.0
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
-
net9.0
- System.Text.Json (>= 10.0.10)
- TedToolkit.Results (>= 2026.8.4)
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 |
|---|---|---|
| 2026.8.4 | 92 | 8/4/2026 |