<PackageReference Include="System.Text.Json" Version="10.0.0-rc.2.25502.107" />

JsonSourceGenerationMode

The generation mode for the System.Text.Json source generator.
Default = 0

When specified on GenerationModeJsonSourceGenerationOptionsAttribute.GenerationMode, indicates that both type-metadata initialization logic and optimized serialization logic should be generated for all types. When specified on GenerationModeJsonSerializableAttribute.GenerationMode, indicates that the setting on GenerationModeJsonSourceGenerationOptionsAttribute.GenerationMode should be used.

Instructs the JSON source generator to generate type-metadata initialization logic.

Instructs the JSON source generator to generate optimized serialization logic.