Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Serializing Enum Values in Lowercase

$
0
0

Hi!

I have a few enums I'm using, and, when they get serialized, I'd like to have them be in lowercase.

I found this over at StackOverflow: http://stackoverflow.com/questions/22908204/howto-decorate-json-net-stringenumconverter

However, I can't get Visual Studio to recognize the EnumMember attribute. I already have using statements for Newtonsoft.Json and System.Runtime.Serialization (the namespace MSDN says the EnumMember attribute exists).

I feel like I'm missing something really simple, so hopefully someone here can help.

Thanks!

-Eric


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>