You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Gets the <see cref="JsonSerializerOptions"/> singleton used as the default in JSON serialization operations.</summary>
18
+
/// <summary>
19
+
/// Gets the <see cref="JsonSerializerOptions"/> singleton used as the default in JSON serialization operations.
20
+
/// </summary>
21
+
/// <remarks>
22
+
/// <para>For Native AOT or applications disabling <see cref="JsonSerializer.IsReflectionEnabledByDefault"/> this instance includes source generated contracts
23
+
/// for all common exchange types contained in the Microsoft.Extensions.AI.Abstractions library.
24
+
/// </para>
25
+
/// <para>
26
+
/// It additionally turns on the following settings:
27
+
/// <list type="number">
28
+
/// <item>Enables the <see cref="JsonSerializerOptions.WriteIndented"/> property.</item>
29
+
/// <item>Enables string based enum serialization as implemented by <see cref="JsonStringEnumConverter"/>.</item>
30
+
/// <item>Enables <see cref="JsonIgnoreCondition.WhenWritingNull"/> as the default ignore condition for properties.</item>
31
+
/// <item>
32
+
/// Enables <see cref="JavaScriptEncoder.UnsafeRelaxedJsonEscaping"/> when escaping JSON strings.
33
+
/// Consuming applications must ensure that JSON outputs are adequately escaped before embedding in other document formats, such as HTML and XML.
0 commit comments