C#C
C#2y ago
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
Was this page helpful?