Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Could it be, that you are not using the JsonConverter at all in your example? The serialization is made by the client object - HttpClient. I tried serializing the data object using JsonConvert.SerializeObject(data) and the output was correct: {"Enum":"Hello"}. So i think the HttpClient does not convert the enum to string. Commented Nov 1, 2013 at 16:52
  • You could well be right. I was under the impression that the HttpClient used Json.NET under the hood now. Perhaps I was wrong. I'll have a tinker and see what I can find. Commented Nov 1, 2013 at 16:59
  • It appears that it is using Json.NET under the hood - see Jeff's answer below. Commented Nov 1, 2013 at 17:03
  • Well, i didn't knew that. Commented Nov 1, 2013 at 17:07