This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Workaround for providing support for EnumMemberAttribute #80838
Labels
You can continue the conversation there. Go to discussion →
We are migrating our code base from Newtonsoft to System.Text.Json.
Our data model uses the EnumMemberAttribute decorations https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.enummemberattribute?view=net-7.0.
Based on this post, I see that the support for this attribute is not provided in System.Text.Json out of the box : #74385 (comment)
The post mentions that we can implement custom converters to provide support for this - but its unclear to me how this can be done.
Can you please provide a sample implementation of such a custom converter?
The text was updated successfully, but these errors were encountered: