© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
11 replies
Videoscope

Issue with deserializing Enums in saved JSON

Hey, I've been trying to deserialize a list of cards I serialized in C#, the issue I'm having is it converts all the enums perfectly except for the cardResource enum, after researching I learned you could use the stringConverter and it might help, and it did work in converting the enums into strings instead of ints and made the JSON more readable, but still for the cardResource I am always getting the value of 0 or Move
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Deserializing JSON
C#CC# / help
3y ago
✅ Problems with deserializing json
C#CC# / help
3y ago
Problem with deserializing JSON file.
C#CC# / help
3y ago