Replies: 1 comment
-
|
System.Runtime.Serialization is not evolving. Moreover, System.Text.Json doesn't support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Minor QoL request for discussion:
Currently when working with either Newtonsoft or System.Text.Json, these serializers rely on their own [JsonConstructorAttribute] while support/use Runtime.Serialization attributes like [DataContractAttribute] and [DataMemberAttribute]. DTOs that I serialize to JSON typically only need System.Runtime.Serialization for configuring attributes until I need to specify a constructor, then I need to ensure I've selected the right one. It would be nice if the deserialization constructor marking was recognized with an attribute in Runtime.Serialization and recognized by both System.Text.Json and Newtonsoft. (As well as other serialization libraries that allow nominating a constructor)
Beta Was this translation helpful? Give feedback.
All reactions