Json.NET.Aot 9.0.1

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

// Install Json.NET.Aot as a Cake Tool
#tool nuget:?package=Json.NET.Aot&version=9.0.1                

Newtonsoft Json.NET Aot for .NET Standard 2.0

This implementation is actually a fork of the excellent work of SaladLab, Json.Net.Unity3D, and of course, the excellent work of the initial author, Newtonsoft !

Why this fork ?

With the arrival of Blazor, a C#/Mono Framework for web browser, it was necessary for my projects to be able to use the same kind of reference library and behavior among projects.

The initial project is not specially AOT friendly, and as JIT is forbidden on some AOT plateforms like iOS / Blazor (as the Mono stack does not ship System.Reflection.Emit), it was difficult to share some JSON structures on all the plateforms i want to support at the same time (Android, iOS, UWP, Blazor).

The goal of SaladLab was to make Json.NET compatible with Unity3D (and so Aot friendly), and was compiled on the .NET 3.5 framework. The goal of this fork was to upgrade the whole project on .NET Standard 2.0 format, with Unity3D DEFINE CONSTANT preferences.

I had to drop to be able the test project, as there is many differences between API i don't want to take time to resolve, mainly related to some SQL stuff.

Where can I get it?

Visit Release or from NuGet (will publish link)

What's done?

Based on SaladLab README:

Following works are done to make Json.NET support Unity3D (AOT platforms)

  • Based on Newtonsoft Json.NET 9.
  • Disable IL generation to work well under AOT environment like iOS.
  • Remove code related with System.ComponentModel.
  • Remove System.Data and EntityKey support.
  • Remove XML support.
  • Remove DiagnosticsTraceWriter support.
  • Workaround for differences between Microsoft.NET & Unity3D-Mono.NET
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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Json.NET.Aot:

Package Downloads
ServerBytes.Client

ServerBytes client

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.0.1 64,135 6/1/2018

First release