I want to serialize enum as string using JSON.NET using attributes similar to [JsonIgnore]
[JsonIgnore]
Example class:
enum Gender { Male, Female } c
Have a look at [JsonConverter(typeof(StringEnumConverter))]. Should do what you want.
[JsonConverter(typeof(StringEnumConverter))]
Edit: http://james.newtonking.com/projects/json/help/html/T_Newtonsoft_Json_Converters_StringEnumConverter.htm provides some info.