JsonTryConvert 13.0.4
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 1.0
This package targets .NET Core 1.0. The package is compatible with this framework or higher.
.NET Standard 1.0
This package targets .NET Standard 1.0. The package is compatible with this framework or higher.
.NET Framework 3.5
This package targets .NET Framework 3.5. The package is compatible with this framework or higher.
dotnet add package JsonTryConvert --version 13.0.4
NuGet\Install-Package JsonTryConvert -Version 13.0.4
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="JsonTryConvert" Version="13.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JsonTryConvert" Version="13.0.4" />
<PackageReference Include="JsonTryConvert" />
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 JsonTryConvert --version 13.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JsonTryConvert, 13.0.4"
#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 JsonTryConvert@13.0.4
#: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=JsonTryConvert&version=13.0.4
#tool nuget:?package=JsonTryConvert&version=13.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

JsonTryConvert
JsonTryConvert provides safe, exception-free try-method extensions for Newtonsoft.Json to attempt serialization and deserialization.
It is compatible with .NET Standard, .NET Core, .NET Framework, and .NET 5/6/7/8/9/10.
Features
- Safe
TrySerializeandTryDeserializemethods for JSON conversion - Overloads for type, formatting, and custom converters
- No exceptions thrown on failure - returns
falseand outputsnull - Supports all major .NET platforms
Installation
Install from NuGet:
Install-Package JsonTryConvert
Or via .NET CLI:
dotnet add package JsonTryConvert
Usage
using Newtonsoft.Json;
// Example class
data class Dummy { public int Id { get; set; } public string? Name { get; set; } }
var obj = new Dummy { Id = 1, Name = "abc" };
// Try to serialize
if (JsonTryConvert.TrySerialize(obj, out string? json))
{
// Try to deserialize
if (JsonTryConvert.TryDeserialize(json!, out Dummy? result))
{
// Use result
}
}
With Type and Formatting
JsonTryConvert.TrySerialize(obj, typeof(Dummy), Formatting.Indented, out var json);
JsonTryConvert.TryDeserialize(json, typeof(Dummy), out var result);
With Custom Converters
JsonTryConvert.TrySerialize(obj, out var json, new MyCustomConverter());
JsonTryConvert.TryDeserialize(json, out Dummy? result, new MyCustomConverter());
API
TrySerialize(object? value, out string? json)TrySerialize(object? value, Type? objectType, out string? json)TrySerialize(object? value, Type? objectType, Formatting formatting, out string? json)TrySerialize<T>(object? value, Type? objectType, Formatting formatting, out string? json, params JsonConverter[] converters)TrySerialize<T>(object? value, Type? objectType, out string? json, params JsonConverter[] converters)TrySerialize(object? value, Type? objectType, JsonSerializerSettings? settings, out string? json)TryDeserialize(string json, out T? value)TryDeserialize(string json, Type? objectType, out object? value)TryDeserialize(string json, Type? objectType, Formatting formatting, out object? value)TryDeserialize<T>(string json, Type? objectType, Formatting formatting, out object? value, params JsonConverter[] converters)TryDeserialize<T>(string json, Type? objectType, out object? value, params JsonConverter[] converters)TryDeserialize(string json, Type? objectType, JsonSerializerSettings? settings, out object? value)
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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 | netcoreapp1.0 is compatible. netcoreapp1.1 is compatible. netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard1.0 is compatible. netstandard1.1 is compatible. netstandard1.2 is compatible. netstandard1.3 is compatible. netstandard1.4 is compatible. netstandard1.5 is compatible. netstandard1.6 is compatible. netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 is compatible. net452 is compatible. net46 is compatible. net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 was computed. |
| Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
| Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 1.0
- Microsoft.NETCore.App (>= 1.0.5)
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 1.1
- Microsoft.NETCore.App (>= 1.1.2)
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 2.0
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 2.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 2.2
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 3.0
- Newtonsoft.Json (>= 13.0.4)
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 3.5
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.0
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.5.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.6.2
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.7
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.7.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.4)
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.2
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.4
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.5
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 1.6
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.4)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.4)
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
-
net5.0
- Newtonsoft.Json (>= 13.0.4)
-
net6.0
- Newtonsoft.Json (>= 13.0.4)
-
net7.0
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
-
net9.0
- Newtonsoft.Json (>= 13.0.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 |
|---|---|---|
| 13.0.4 | 119 | 1/5/2026 |