You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users should be able to specify the order of a json property during serialization.
It is possible to specify order by changing the order of the properties in the code. However, it is not possible to do this in inherited classes.
Users should be able to specify the order of a json property during serialization.
It is possible to specify order by changing the order of the properties in the code. However, it is not possible to do this in inherited classes.
Example
FooView
's properties will always be placed beforeBaseView
's upon serialization.Implementation
Newtonsoft.Json does it like this:
An idea for System.Text.Json could be to use theDataMemberAttribute
instead of creating its own attribute.The text was updated successfully, but these errors were encountered: