VOOZH about

URL: https://www.nuget.org/packages/Thoth.Json/

⇱ NuGet Gallery | Thoth.Json 10.5.1




Thoth.Json 10.5.1

dotnet add package Thoth.Json --version 10.5.1
 
 
NuGet\Install-Package Thoth.Json -Version 10.5.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="Thoth.Json" Version="10.5.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Thoth.Json" Version="10.5.1" />
 
Directory.Packages.props
<PackageReference Include="Thoth.Json" />
 
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 Thoth.Json --version 10.5.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Thoth.Json, 10.5.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.
#:package Thoth.Json@10.5.1
 
 
#: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=Thoth.Json&version=10.5.1
 
Install as a Cake Addin
#tool nuget:?package=Thoth.Json&version=10.5.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Thoth.Json 👁 Build Status

Stable Prerelease
👁 NuGet Badge
👁 NuGet Badge

Benchmark

Remark

We are comparing the performance of Thoth.Json with standard JSON libraries like Newtonsoft.Json and System.Text.Json.

Thoth.Json is expected to be slower than these libraries because it uses them internally.

It is also important to note that Thoth.Json solve a different problem than these libraries. It aims to provide a cross-platform API for .NET, JavaScript, Python, etc. with a focus on the developer experience and type safety.

For most of the use cases, Thoth.Json should be fast enough, not everyone needs to parse JSON at the speed of light.

BenchmarkDotNet v0.14.0, Arch Linux
Intel Core i9-14900K, 1 CPU, 32 logical and 24 physical cores
.NET SDK 8.0.413
 [Host] : .NET 8.0.19 (8.0.1925.36514), X64 RyuJIT AVX2 DEBUG
 DefaultJob : .NET 8.0.19 (8.0.1925.36514), X64 RyuJIT AVX2


| Method | Mean | Error | StdDev | Ratio | RatioSD |
|---------------------------- |-----------:|---------:|---------:|------:|--------:|
| System.Text.Json | 524.5 ns | 2.25 ns | 2.11 ns | 1.00 | 0.01 |
| Newtonsoft | 1,757.2 ns | 25.57 ns | 22.66 ns | 3.35 | 0.04 |
| Thoth.Json.System.Text.Json | 3,173.4 ns | 14.25 ns | 12.63 ns | 6.05 | 0.03 |
| Thoth.Json.Newtonsoft | 5,094.4 ns | 32.62 ns | 28.92 ns | 9.71 | 0.07 |

Blogs post

This is to keep track of different blog post that I refer to sometimes when thinking or helping people.

Project structure

Tests

For the tests, we use a shared project Thoth.Json.Tests that is referenced by the different runners. This is because we want each runner to only have the minimum amount of dependencies, and also if we include files from outside the .fsproj folder, then some generated files by Fable escape from the specify outDir.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (32)

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

Package Downloads
Fable.Elmish.Debugger

Debugger for Elmish apps

Fable.PowerPack

Package Description

Thoth.Fetch

Library for working with Fable.Fetch and Thoth.Json when doing web request

Plough.WebApi.Core

Library to design web api with shared api server/client definition project. Plough.WebApi.Core has compatibility with F# Fable.

Thoth.Json.CE

Computation Expression for building Thoth.Json decoders

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.5.1 395 6/3/2026
10.5.0 2,234 4/23/2026
10.4.1 59,900 1/20/2025
10.4.0 6,197 11/23/2024
10.2.0 122,146 5/22/2023
10.1.0 15,896 3/23/2023
10.0.0 47,751 2/8/2023
9.1.0 1,709 1/22/2023
9.0.0 23,562 12/4/2022
8.0.0 2,977 11/9/2022
7.0.0 97,208 1/5/2022
6.0.0 130,547 7/6/2021
5.1.0 77,618 1/13/2021
5.0.0 17,378 10/13/2020
4.1.0 143,255 5/7/2020
4.0.0 27,676 3/4/2020
3.5.0 13,052 1/13/2020
3.4.1 27,467 10/25/2019
3.4.0 866 10/25/2019
Loading failed

### 🐞 Bug Fixes

* Correct typo "Unkown" to "Unknown" (#236) ([e0fc08d](https://github.com/thoth-org/Thoth.Json/commit/e0fc08de9e296c7d7b9a9b0ca496cfca57d4a3bc))
* *(decode)* Use invariant culture for decimal strings (#245) ([7e3cf65](https://github.com/thoth-org/Thoth.Json/commit/7e3cf6576d8ebb5e7655e18dc8ae97ad136cee9b))

<strong><small>[View changes on Github](https://github.com/thoth-org/Thoth.Json/compare/c05798f7f81cf131ec882f6be9c587529afa9cb9..7e3cf6576d8ebb5e7655e18dc8ae97ad136cee9b)</small></strong>