JavaScriptSerializer.Deserialize – how to change field names
I took another try at it, using the DataContractJsonSerializer class. This solves it: The code looks like this: using System.Runtime.Serialization; [DataContract] public class DataObject { [DataMember(Name = “user_id”)] public int UserId { get; set; } [DataMember(Name = “detail_level”)] public string DetailLevel { get; set; } } And the test is: using System.Runtime.Serialization.Json; [TestMethod] public void … Read more