<PackageReference Include="System.Text.Json" Version="11.0.0-preview.2.26159.112" />

System.Text.Json.Serialization.JsonPropertyOrderAttribute

Specifies the property order that is present in the JSON when serializing. Lower values are serialized first. If the attribute is not specified, the default value is 0.
public int Order { get; }

Gets the serialization order of the property.

public JsonPropertyOrderAttribute(int order)

Initializes a new instance of JsonPropertyNameAttribute with the specified order.