SemanticTypeModel.SystemTextJson
1.1.0
dotnet add package SemanticTypeModel.SystemTextJson --version 1.1.0
NuGet\Install-Package SemanticTypeModel.SystemTextJson -Version 1.1.0
<PackageReference Include="SemanticTypeModel.SystemTextJson" Version="1.1.0" />
<PackageVersion Include="SemanticTypeModel.SystemTextJson" Version="1.1.0" />
<PackageReference Include="SemanticTypeModel.SystemTextJson" />
paket add SemanticTypeModel.SystemTextJson --version 1.1.0
#r "nuget: SemanticTypeModel.SystemTextJson, 1.1.0"
#:package SemanticTypeModel.SystemTextJson@1.1.0
#addin nuget:?package=SemanticTypeModel.SystemTextJson&version=1.1.0
#tool nuget:?package=SemanticTypeModel.SystemTextJson&version=1.1.0
SemanticTypeModel.SystemTextJson
System.Text.Json contract integration for SemanticTypeModel.
dotnet add package SemanticTypeModel.SystemTextJson --version 1.1.0
What it does
- Publishes
systemTextJson.*annotation constants. - Provides
SystemTextJsonProjectionOptionsandSemanticJsonPropertyNameSource. - Enables
.NETextraction options throughUseSystemTextJson(). - Provides conservative
JsonSerializerOptionsandIJsonTypeInfoResolverhelpers that preserve an existing resolver or user-authoredJsonSerializerContext. - Can apply imported
systemTextJson.propertyNamevalues or semantic property names as JSON serialization names when explicitly configured.
Semantic names and JSON property names remain separate by default. The default resolver behavior preserves the existing System.Text.Json contract.
Generated contexts
SemanticTypeModel.SystemTextJson does not generate JsonSerializerContext declarations. Generated context support is removed in 1.1.0 because it depended on unsupported source-generator chaining and did not produce a reliable consumer feature. Author the context in consumer code when source generation is needed, then wrap it with WithSemanticTypeModelJson(...).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- SemanticTypeModel.Abstractions (>= 1.1.0)
- SemanticTypeModel.DotNet (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.