Is there a way to support serializing/deserializing from and to the same properties using different property names? #88095
Unanswered
DefinitelyADev
asked this question in
Q&A
Replies: 2 comments
-
Duplicate of #87875 |
Beta Was this translation helpful? Give feedback.
0 replies
-
To answer your question perhaps create a template struct / class to write your data to the structure before serializing. |
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.
-
Now that System.Text.Json is way more mature than what it was 3-4 years ago, is there a way to support serializing/deserializing from and to the same properties using different property names?
Let's say for example, in the past with newtonsoft I would have done something like this
Is it possible to achieve similar functionality in .NET 7 and/or 8, and if so, how?
Beta Was this translation helpful? Give feedback.
All reactions