Edit

Share via


JsonSerializerOptions.AllowOutOfOrderMetadataProperties Property

Definition

Gets or sets a value that indicates whether JSON metadata properties can be specified after regular properties in a deserialized JSON object.

public:
 property bool AllowOutOfOrderMetadataProperties { bool get(); void set(bool value); };
public bool AllowOutOfOrderMetadataProperties { get; set; }
member this.AllowOutOfOrderMetadataProperties : bool with get, set
Public Property AllowOutOfOrderMetadataProperties As Boolean

Property Value

true if JSON metadata properties, such as \$id and \$type, aren't required to be specified at the very start of the deserialized JSON object; false if JSON metadata properties must be specified before regular properties.

Exceptions

This property is set after serialization or deserialization has occurred.

Remarks

If you enable this setting, it can result in over-buffering when deserializing large JSON payloads in the context of streaming deserialization.

Applies to