Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Text.​Json.​Serialization.​JsonSourceGenerationMode

Assembly: System.Text.Json

The generation mode for the System.Text.Json source generator.

Values

Default
When specified on <see cref="P:System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute.GenerationMode">JsonSourceGenerationOptionsAttribute.GenerationMode</see> , indicates that both type-metadata initialization logic and optimized serialization logic should be generated for all types. When specified on <see cref="P:System.Text.Json.Serialization.JsonSerializableAttribute.GenerationMode">JsonSerializableAttribute.GenerationMode</see> , indicates that the setting on <see cref="P:System.Text.Json.Serialization.JsonSourceGenerationOptionsAttribute.GenerationMode">JsonSourceGenerationOptionsAttribute.GenerationMode</see> should be used.
Metadata
Instructs the JSON source generator to generate type-metadata initialization logic.
Serialization
Instructs the JSON source generator to generate optimized serialization logic.