ASP.NET 4 JSON DataContractJsonSerializer Lower Case -


i have class several properties defined in sentence case:

public class provider     public property providername string end class 

i need able pass instances of through ajax using in javascript add array, process etc. using datacontractjsonserializer serialize json , return through ashx handler. may me being picky, don't having sentence case properties in javascript, prefer them lower case, produce following:

alert(myprovider.providername); 

with default datacontractjsonserializer cannot find way this! json.net appear simple task, unfortunately can't introduce dependency project - as to.

does know of way override format of keys generated?

the project using asp.net web forms 4.0.

thanks,

chris.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -