diff --git a/xml/System.Text.Json/JsonSerializerOptions.xml b/xml/System.Text.Json/JsonSerializerOptions.xml index 72387092432..559d8b26970 100644 --- a/xml/System.Text.Json/JsonSerializerOptions.xml +++ b/xml/System.Text.Json/JsonSerializerOptions.xml @@ -14,7 +14,7 @@ - To be added. + Provides options to be used with . To be added. @@ -31,7 +31,7 @@ - To be added. + Initializes a new instance of the class. To be added. @@ -51,9 +51,18 @@ System.Boolean - To be added. - To be added. - To be added. + Get or sets a value that indicates whether an extra comma at the end of a list of JSON values in an object or array is allowed (and ignored) within the JSON payload being deserialized. + if an extra comma at the end of a list of JSON values in an object or array is allowed (and ignored); otherwise. + + is thrown if a trailing comma is encountered. + + ]]> + + This property was set after serialization or deserialization has occurred. @@ -72,9 +81,17 @@ System.Collections.Generic.IList<System.Text.Json.Serialization.JsonConverter> - To be added. - To be added. - To be added. + Gets the list of user-defined converters that were registered. + The list of custom converters. + + + @@ -93,9 +110,19 @@ System.Int32 - To be added. - To be added. - To be added. + Gets or sets the default buffer size, in bytes, to use when creating temporary buffers. + The default buffer size in bytes. + + + + The buffer size is less than 1. + This property was set after serialization or deserialization has occurred. @@ -114,9 +141,21 @@ System.Text.Json.JsonNamingPolicy - To be added. - To be added. - To be added. + Gets or sets the policy used to convert a key's name to another format, such as camel-casing. + The policy used to convert a key's name to another format. + + to specify a camel-casing policy. + +This property can be set to to specify a camel-casing policy. + +It is not used when deserializing. + + ]]> + @@ -138,9 +177,9 @@ - To be added. - To be added. - To be added. + The type to return a converter for. + Returns the converter for the specified type. + The first converter that supports the given type, or if there is no converter. To be added. @@ -160,9 +199,10 @@ System.Boolean - To be added. - To be added. + Gets or sets a value that determines whether values are ignored during serialization and deserialization. The default value is . + to ignore null values during serialization and deserialization; otherwise, see langword="false" />. To be added. + This property was set after serialization or deserialization has occurred. @@ -181,9 +221,20 @@ System.Boolean - To be added. - To be added. - To be added. + Gets a value that determines whether read-only properties are ignored during serialization. The default value is . + to ignore read-only properties during serialization; otherwise, . + + + + This property was set after serialization or deserialization has occurred. @@ -202,9 +253,19 @@ System.Int32 - To be added. - To be added. - To be added. + Gets or sets the maximum depth allowed when serializing or deserializing JSON, with the default value of 0 indicating a maximum depth of 64. + The maximum depth allowed when serializing or deserializing JSON. + + . + + ]]> + + This property was set after serialization or deserialization has occurred. + The max depth is set to a negative value. @@ -223,9 +284,17 @@ System.Boolean - To be added. - To be added. - To be added. + Gets or sets a value that determines whether a property's name uses a case-insensitive comparison during deserialization. The default value is . + to compare property names using case-insensitive comparison; otherwise, . + + + @@ -244,9 +313,21 @@ System.Text.Json.JsonNamingPolicy - To be added. - To be added. - To be added. + Gets or sets a value that specifies the policy used to convert a property's name on an object to another format, such as camel-casing. + One of the enum values from . + + applied. + +This property can be set to to specify a camel-casing policy. + + ]]> + @@ -265,9 +346,19 @@ System.Text.Json.JsonCommentHandling - To be added. - To be added. - To be added. + Gets or sets a value that defines how comments are handled during deserialization. + A value that indicates whether comments are allowed, disallowed, or skipped. + + is thrown if a comment is encountered. + + ]]> + + This property was set after serialization or deserialization has occurred. + The comment handling enum is set to a value that is not supported (or not within the enum range). @@ -286,10 +377,21 @@ System.Boolean - To be added. - To be added. - To be added. + Gets or sets a value that defines whether JSON should use pretty printing. By default, JSON is serialized without any extra white space. + if JSON should pretty print on serialization; otherwise, . The default is . + + + + This property was set after serialization or deserialization has occurred. - \ No newline at end of file +