Json.Net 1.0.33

dotnet add package Json.Net --version 1.0.33                
NuGet\Install-Package Json.Net -Version 1.0.33                
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="Json.Net" Version="1.0.33" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Json.Net --version 1.0.33                
#r "nuget: Json.Net, 1.0.33"                
#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 Json.Net as a Cake Addin
#addin nuget:?package=Json.Net&version=1.0.33

// Install Json.Net as a Cake Tool
#tool nuget:?package=Json.Net&version=1.0.33                

Json.Net & Json.Net.Core

A minimalistic JSON handler library.

Json.Net (.NET Standard 2.0) : https://www.nuget.org/packages/Json.Net/

Json.Net.Core (.NET 5.0) : https://www.nuget.org/packages/Json.Net.Core/

Usage instructions

Define a POCO class...

class Pet
{
  public int id;
  public string name;
}

Serialization...

var petJson = JsonNet.Serialize(pet);

Deserialization...

var pet = JsonNet.Deserialize<Pet>(petJson);

You can also define and use custom type converters to control serialization/deserialization.

var dateConverter = 
  new JsonConverter<DateTime>(
    dt => dt.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss", CultureInfo.InvariantCulture),
    s => DateTime.ParseExact(s, "yyyy'-'MM'-'dd'T'HH':'mm':'ss", CultureInfo.InvariantCulture));
  
var petJson = JsonNet.Serialize(pet, dateConverter);

Reference

Name space

using Json.Net;

Methods

string JsonNet.Serialize(object obj, params IJsonConverter[] converters)
Description

Serializes an object to its JSON text representation.

Parameters

obj : Object to be serialized
converters : Custom type converters. Default: empty


void Serialize(object obj, Stream stream, params IJsonConverter[] converters)
Description

Serializes an object to a JSON text stream destination.

Parameters

obj : Object to be serialized
stream : JSON stream
converters : Custom type converters. Default: empty


void Serialize(object obj, TextWriter writer, params IJsonConverter[] converters)
Description

Serializes an object to a JSON text writer destination.

Parameters

obj : Object to be serialized
writer : JSON text writer
converters : Custom type converters. Default: empty

T JsonNet.Deserialize<T>(string json, params IJsonConverter[] converters)
Description

Deserializes an object from a JSON text.

Parameters

T : Deserialized object's type
json : JSON text
converters : Custom converters. Default: empty


T Deserialize<T>(Stream stream, params IJsonConverter[] converters)
Description

Deserializes an object from a JSON text stream source.

Parameters

T : Deserialized object's type
stream : JSON stream
converters : Custom converters. Default: empty


T Deserialize<T>(TextReader reader, params IJsonConverter[] converters)
Description

Deserializes an object from a JSON text reader source.

Parameters

T : Deserialized object's type
reader : JSON text reader
converters : Custom converters. Default: empty


Converter interface

public interface IJsonConverter
{
  Type GetConvertingType();
  string Serializer(object obj);
  object Deserializer(string txt);
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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. 
.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 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (18)

Showing the top 5 NuGet packages that depend on Json.Net:

Package Downloads
Cryptocurrency.Blockchain

Cryptocurrency.Blockchain is a library for interacting with the Blockchain Data API provided by Blockchain.

CrunchyrollAPI

Description

Griffin.ReportWriter

Griffin Report Writer (C# Custom Library, for internal use only)

Tyle_Evmos

Package Description

Tyle.Nft

Package Description

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on Json.Net:

Repository Stars
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
VRCWizard/TTS-Voice-Wizard
Speech to Text to Speech. Song now playing. Sends text as OSC messages to VRChat to display on avatar. (STTTS) (Speech to TTS) (VRC STT System) (VTuber TTS)
AzureAD/SCIMReferenceCode
Reference code to build a SCIM endpoint to automate provisioning
stuff-by-3-random-dudes/UWUVCI-AIO-WPF
R2NorthstarTools/VTOL
A Manager and Installer For the Titanfall 2 +Northstar launcher.
Version Downloads Last updated
1.0.33 1,820,862 5/16/2021
1.0.32 1,112 5/16/2021 1.0.32 is deprecated because it is no longer maintained.
1.0.31 22,663 4/24/2021 1.0.31 is deprecated because it is no longer maintained.
1.0.30 902 4/23/2021 1.0.30 is deprecated because it is no longer maintained.
1.0.29 649 4/23/2021 1.0.29 is deprecated because it is no longer maintained.
1.0.28 612 4/23/2021 1.0.28 is deprecated because it has critical bugs.
1.0.27 557 4/23/2021 1.0.27 is deprecated because it is no longer maintained.
1.0.26 569 4/23/2021 1.0.26 is deprecated because it is no longer maintained.
1.0.25 93,364 2/20/2021 1.0.25 is deprecated because it is no longer maintained.
1.0.24 636 2/20/2021 1.0.24 is deprecated because it is no longer maintained.
1.0.23 416,018 6/20/2020 1.0.23 is deprecated because it is no longer maintained.
1.0.22 87,263 5/5/2020 1.0.22 is deprecated because it is no longer maintained and has critical bugs.
1.0.21 13,885 4/25/2020 1.0.21 is deprecated because it is no longer maintained.
1.0.18 934,607 11/19/2019 1.0.18 is deprecated because it is no longer maintained.
1.0.17 1,160 11/19/2019 1.0.17 is deprecated because it is no longer maintained.
1.0.16 401,274 1/5/2019 1.0.16 is deprecated because it is no longer maintained.
1.0.15 1,777 1/5/2019 1.0.15 is deprecated because it is no longer maintained.
1.0.14 1,232 1/5/2019 1.0.14 is deprecated because it is no longer maintained.
1.0.13 4,344 12/17/2018 1.0.13 is deprecated because it is no longer maintained.
1.0.12 1,196 12/17/2018 1.0.12 is deprecated because it is no longer maintained.
1.0.11 1,173 12/16/2018 1.0.11 is deprecated because it is no longer maintained.
1.0.10 2,221 12/15/2018 1.0.10 is deprecated because it is no longer maintained.
1.0.9 3,070 12/13/2018 1.0.9 is deprecated because it is no longer maintained.
1.0.8 1,127 12/13/2018 1.0.8 is deprecated because it is no longer maintained.
1.0.7 1,041 12/13/2018 1.0.7 is deprecated because it is no longer maintained.
1.0.6 1,333 12/12/2018 1.0.6 is deprecated because it is no longer maintained.
1.0.5 1,181 12/12/2018 1.0.5 is deprecated because it is no longer maintained.
1.0.4 1,015 12/12/2018 1.0.4 is deprecated because it is no longer maintained.
1.0.3 1,185 12/12/2018 1.0.3 is deprecated because it is no longer maintained.
1.0.1 1,375 12/12/2018 1.0.1 is deprecated because it is no longer maintained.
1.0.0 25,198 12/12/2018 1.0.0 is deprecated because it is no longer maintained.

- Guid conversion bugfix
- IEnumerable deserialization bugfix
- ExpandoObjects implemented
- String to Expando conversion bugfix
- IEnumerable<> deserialization bugfix
- Nullable Enum deserialization bugfix
- Interface null deserialization bugfix