This project has moved. For the latest updates, please go here.

Char enums conversion

Mar 26, 2009 at 10:34 AM
Hi James,

Currently a char enum is converted in json to an integer. Would it not make sense to convert it to a char by default?

Mar 26, 2009 at 8:33 PM
Each choice has its pros and cons. You could easily write a JsonConverter that writes Enums as a string instead of an integer. If you do, it would be awesome if you posted the code here. It would be something that could be useful to a number of people.
Mar 29, 2009 at 1:41 AM
I added a converter myself. There is now a EnumStringConverter in the latest version of the source code.
Mar 29, 2009 at 6:25 PM
Thanks again. That's great!!!