AIJsonUtilities.DefaultOptions Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the JsonSerializerOptions singleton used as the default in JSON serialization operations.
public:
static property System::Text::Json::JsonSerializerOptions ^ DefaultOptions { System::Text::Json::JsonSerializerOptions ^ get(); };
public static System.Text.Json.JsonSerializerOptions DefaultOptions { get; }
static member DefaultOptions : System.Text.Json.JsonSerializerOptions
Public ReadOnly Property DefaultOptions As JsonSerializerOptions
Property Value
Remarks
For Native AOT or applications disabling IsReflectionEnabledByDefault this instance includes source generated contracts for all common exchange types contained in the Microsoft.Extensions.AI.Abstractions library.
It additionally turns on the following settings:
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.