e different names during Serialize and Deserialize [Answered]
Is there a way to use Text.json to make members use different names during Serialize and Deserialize?
11 Replies
[JsonPropertyName("other-name")]
i mean Serialize use "AA" and Deserialize use "BB"
I haven't found a good way to do this for the time 

Custom converters
And probably custom attributes
use JsonConverter?
A custom implementation, yes
You basically have to write your own serialization or deserialization logic
thx, i will 

Just curious about your use case for this.
Im guessing some kind of translation between apis
Or back compat?
That's what I'm guessing
in that scenario I'd push for different models tbh

✅ This post has been marked as answered!