I am trying to set the order in which various JSON properties get serialised, and all the examples I can find are using C#, and are like:
[JsonProperty(Order = 1)]
but I cannot find a way to write this in VB.NET which Visual Studio will accept - the obvious:
<JsonProperty(Order = 1)>
gives errors and won't compile .... (no doubt there's a way to format that last line, but...)
As I also need to set the property name for the same property, e.g.
[JsonProperty(PropertyName = "CardCode")]
in c#, how can I set both the name and order in vb.net using JsonPropertyAttribute
?