Jan 12, 2013, 7:14 PM
[CLOSED] Specify how object is serialized in DirectMethod
I have a directmethod that returns an object. Is it possible to make the serialization use the CamelCasePropertyNamesContractResolver? The object has property called Name but I need it to be "name" once serialized. If I return a string and encode back on clientside, I can make it work but just wondering if there's a better way.
JSON.Serialize(someObject, New Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
Last edited by Daniil; Jan 15, 2013 at 4:08 AM.
Reason: [CLOSED]