I have a class contains an enum property and using newtonsoft.json serilaizer I am serializing an instance of it . I want the output of serializing this property to be the string value of the property,so I used StringEnumConverter but the output was like this
** without converter : "FailOrPassProperty":1
** with converter : "FailOrPassProperty":"1"
So using the converter it seems like it is getting the ToString() of the integer
I have tried this solution but it didn't work: JSON serialization of enum as string
Note: I cannot use attribute decoration due to business rules.