Can NativeAOT support DataMember annotated properties? #126336
-
|
My situation is this, vendor provides a REST API which includes the type definitions, but they are intended to be used with the DataContractSerializer - so I have objects like this: The server sends the property as "ClassificationName":"test" and expects it to be mapped appropriately... Is there any way to get this to work with JsonSerializerContext and NativeAOT? |
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Mar 31, 2026
Replies: 1 comment
-
|
JsonSerializer won't provide built-in support for data contract attributes. See #29975. You have to write a custom contract resolver. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
catmanjan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JsonSerializer won't provide built-in support for data contract attributes. See #29975. You have to write a custom contract resolver.