Morphir.Myriad.SystemTextJson.Annotations
0.4.0-alpha.2
Prefix Reserved
See the version list below for details.
dotnet add package Morphir.Myriad.SystemTextJson.Annotations --version 0.4.0-alpha.2
NuGet\Install-Package Morphir.Myriad.SystemTextJson.Annotations -Version 0.4.0-alpha.2
<PackageReference Include="Morphir.Myriad.SystemTextJson.Annotations" Version="0.4.0-alpha.2" />
<PackageVersion Include="Morphir.Myriad.SystemTextJson.Annotations" Version="0.4.0-alpha.2" />
<PackageReference Include="Morphir.Myriad.SystemTextJson.Annotations" />
paket add Morphir.Myriad.SystemTextJson.Annotations --version 0.4.0-alpha.2
#r "nuget: Morphir.Myriad.SystemTextJson.Annotations, 0.4.0-alpha.2"
#:package Morphir.Myriad.SystemTextJson.Annotations@0.4.0-alpha.2
#addin nuget:?package=Morphir.Myriad.SystemTextJson.Annotations&version=0.4.0-alpha.2&prerelease
#tool nuget:?package=Morphir.Myriad.SystemTextJson.Annotations&version=0.4.0-alpha.2&prerelease
Morphir.Myriad.SystemTextJson.Annotations
Attributes and options for Morphir.Myriad.SystemTextJson, a Myriad plugin that generates trim-safe and Native AOT-safe System.Text.Json converters and contexts for F# records, unions and enums at build time.
This package has no dependency and targets netstandard2.0. Nothing in it runs: the generator reads the attributes from the F# source at build time.
open Morphir.Myriad.SystemTextJson
[<JsonUnion(BaseEncoding = (JsonUnionEncoding.InternalTag ||| JsonUnionEncoding.NamedFields), TagName = "kind")>]
type Shape =
| [<JsonName "circle">] Circle of radius: float
| [<JsonName "square">] Square of side: float
| Attribute | Use |
|---|---|
JsonUnion |
The encoding of one union: base encoding and flags, tag and fields names, naming. |
JsonRecord |
The member rules of one record: naming, skippable options, unknown members, null fields. |
JsonName |
The JSON name of a case or field. More names are accepted when reading. |
JsonParsedValue |
A type that is written as text and read only through its parser. |
JsonIgnoreType |
Leave a type out of the context. |
The union encodings use the names and meanings of FSharp.SystemTextJson. See the Morphir.Myriad.SystemTextJson guide for the full reference.
| 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. net9.0 was computed. 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 was computed. 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 | 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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Morphir.Myriad.SystemTextJson.Annotations:
| Package | Downloads |
|---|---|
|
Morphir.Mep
Shared Morphir Extension Protocol messages and transports |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0-alpha.3 | 57 | 11/14/2026 |
| 0.5.0-alpha.2 | 62 | 11/13/2026 |
| 0.5.0-alpha.1 | 60 | 11/13/2026 |
| 0.4.0-alpha.5 | 60 | 11/13/2026 |
| 0.4.0-alpha.4 | 67 | 11/10/2026 |
| 0.4.0-alpha.3 | 80 | 11/9/2026 |
| 0.4.0-alpha.2 | 53 | 11/8/2026 |
### Added
- `morphir extension list` (and `dotnet-morphir extension list`) lists the built-in extensions, the C# and F# generators, with their id, name, version, types, delivery and hosts, as a table or with `--json`. New package `Morphir.Extensions` with the extension registry domain ([#503](https://github.com/finos/morphir-dotnet/pull/503), [#492](https://github.com/finos/morphir-dotnet/issues/492))
- `Morphir.Myriad.SystemTextJson`: a Myriad plugin that generates trim-safe and Native AOT-safe System.Text.Json converters and a `JsonSerializerContext` for F# records, unions and enums at build time. The union encodings, flags and presets give the same JSON as FSharp.SystemTextJson; parsed values, cases chosen by JSON token kind, exact numbers and member rules are added. See the Myriad JSON guide ([#511](https://github.com/finos/morphir-dotnet/issues/511))
- `Morphir.Myriad.SystemTextJson.Annotations`: the attributes and options of the generator, for `netstandard2.0`, with no dependency ([#511](https://github.com/finos/morphir-dotnet/issues/511))
- `Morphir.Myriad` is published to NuGet.org with each release; it was only packed into a local feed before ([#511](https://github.com/finos/morphir-dotnet/issues/511))
### Changed
- The car rental example and the Morphir-to-F# article use `Morphir.Myriad` from NuGet.org with the release version in `MorphirMyriadVersion`, not a local feed ([#511](https://github.com/finos/morphir-dotnet/issues/511))
### Fixed
- `Morphir.Models` has F# nullness annotations, so C# callers see which values may be null ([#508](https://github.com/finos/morphir-dotnet/issues/508))
- `morphir ir verify` accepts `"doc": null` on IR v3 modules, which the Morphir tools write ([#510](https://github.com/finos/morphir-dotnet/pull/510))
### Removed
- The internal stub `json-codec` Myriad generator, which returned no code; use `Morphir.Myriad.SystemTextJson` ([#511](https://github.com/finos/morphir-dotnet/issues/511))