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.