FSharp.SystemTextJson
0.17.4
See the version list below for details.
dotnet add package FSharp.SystemTextJson --version 0.17.4
NuGet\Install-Package FSharp.SystemTextJson -Version 0.17.4
<PackageReference Include="FSharp.SystemTextJson" Version="0.17.4" />
paket add FSharp.SystemTextJson --version 0.17.4
#r "nuget: FSharp.SystemTextJson, 0.17.4"
// Install FSharp.SystemTextJson as a Cake Addin #addin nuget:?package=FSharp.SystemTextJson&version=0.17.4 // Install FSharp.SystemTextJson as a Cake Tool #tool nuget:?package=FSharp.SystemTextJson&version=0.17.4
FSharp.SystemTextJson
This library provides support for F# types to System.Text.Json.
It adds support for the following types:
F# records (including struct records and anonymous records);
F# discriminated unions (including struct unions), with a variety of representations;
F# collections:
list<'T>
,Map<'T>
,Set<'T>
.
It provides a number of customization options, allowing a wide range of JSON serialization formats.
Documentation
FAQ
- Does FSharp.SystemTextJson support alternative formats for unions?
- Does FSharp.SystemTextJson support representing
'T option
as either just'T
ornull
(or an absent field)?
Yes! Starting with v0.6, this is the default behavior.
To supersede it, use an explicit JsonUnionEncoding
that does not include UnwrapOption
.
- Does FSharp.SystemTextJson support
JsonPropertyNameAttribute
andJsonIgnoreAttribute
on record fields?
Yes!
- Does FSharp.SystemTextJson support options such as
PropertyNamingPolicy
andIgnoreNullValues
?
Yes!
- Can I customize the format for a specific type?
- Does FSharp.SystemTextJson allocate memory?
As little as possible, but unfortunately the FSharp.Reflection
API requires some allocations. In particular, an array is allocated for as many items as the record fields or union arguments, and structs are boxed. There is work in progress to improve this.
- Are there any benchmarks, e.g. against Newtonsoft.Json?
Product | Versions 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. |
-
.NETStandard 2.0
- FSharp.Core (>= 4.7.0)
- System.Text.Json (>= 4.6.0)
NuGet packages (35)
Showing the top 5 NuGet packages that depend on FSharp.SystemTextJson:
Package | Downloads |
---|---|
Giraffe
A native functional ASP.NET Core web framework for F# developers. |
|
SwaggerProvider
F# Type Providers for Swagger & OpenAPI |
|
Fable.Compiler
Package Description |
|
Bolero
A set of tools and libraries to run F# applications in WebAssembly using Blazor |
|
Felicity
Boilerplate-free, idiomatic JSON:API for your beautiful, idiomatic F# domain model. Optimized for developer happiness. |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on FSharp.SystemTextJson:
Repository | Stars |
---|---|
JasperFx/marten
.NET Transactional Document DB and Event Store on PostgreSQL
|
|
asc-community/AngouriMath
New open-source cross-platform symbolic algebra library for C# and F#. Can be used for both production and research purposes.
|
|
AvaloniaUI/Live.Avalonia
In-app live reload for Avalonia applications.
|
Version | Downloads | Last updated |
---|---|---|
1.3.13 | 127,000 | 4/4/2024 |
1.2.42 | 250,214 | 8/30/2023 |
1.2.34 | 5,949 | 8/13/2023 |
1.1.23 | 153,135 | 1/21/2023 |
1.0.7 | 24,356 | 11/30/2022 |
1.0.6 | 48,923 | 10/7/2022 |
1.0.5 | 10,002 | 9/26/2022 |
0.19.13 | 320,228 | 6/18/2022 |
0.18.24 | 3,201 | 6/9/2022 |
0.17.4 | 355,381 | 5/26/2021 |
0.16.6 | 119,848 | 1/20/2021 |
0.15.14 | 61,269 | 11/21/2020 |
0.14.8 | 27,680 | 10/6/2020 |
0.13.15 | 498 | 10/6/2020 |
0.13.14 | 465 | 10/6/2020 |
0.12.12 | 13,974 | 7/21/2020 |
0.11.13 | 103,031 | 4/5/2020 |
0.10.25 | 12,193 | 3/2/2020 |
0.9.12 | 559 | 2/27/2020 |
0.8.27 | 1,262 | 2/19/2020 |
0.8.24 | 2,788 | 1/30/2020 |
0.7.3 | 3,563 | 11/23/2019 |
0.6.2 | 4,584 | 10/26/2019 |
0.6.1 | 530 | 10/26/2019 |
0.5.1 | 1,976 | 9/29/2019 |
0.4.1 | 2,065 | 9/24/2019 |
0.3.1-preview7 | 339 | 8/9/2019 |
0.2.1-preview7 | 305 | 8/6/2019 |
0.1.7-preview7 | 363 | 8/5/2019 |