Is there a System.Text.Json's substitute for Json.NET's JsonProperty(Order)? Is there a System.Text.Json's substitute for Json.NET's JsonProperty(Order)? json json

Is there a System.Text.Json's substitute for Json.NET's JsonProperty(Order)?


Json.NET's JsonProperty(Order) is not directly supported in the current versions of System.Text.Json. However you can create a JsonConverter for this purpose.

An example to achieve this: .NET core 3: Order of serialization for JsonPropertyName (System.Text.Json.Serialization)