I have a class:
 public class MyClass
 {
    public MyEnum Foo{ get; set; }
 }
During serialization i'd like to change the output from
{
   "Foo": 1
}
to
{
   "Foo": "EnumName"
}
I've tried creating an IValueProvider but hit dead ends every way I go. (My scenario is a bit more complicated than stated; I need to find a way to do this entirely within the IContractResolver.)