I would recommend using Newtonsoft Json.NET .
On the documentation page you can also find tons of samples. This is exactly the solution to your problem (I added the problem field "odata.context" so that you can understand how to match the JSON response and your class:
https://www.newtonsoft.com/json/help/html/DeserializeObject.htm
public class Account { [JsonProperty("@odata.context")] public string myText { get; set; } public bool Active { get; set; } public DateTime CreatedDate { get; set; } public IList<string> Roles { get; set; } } string json = @"{ '@odata.context': 'this is an attribute with an @ in the name.', 'Active': true, 'CreatedDate': '2013-01-20T00:00:00Z', 'Roles': [ 'User', 'Admin' ] }"; Account account = JsonConvert.DeserializeObject<Account>(json); Console.WriteLine(account.myText);
Prevent the use of "@" for your governors. Use JsonProperty . This allows you to map JsonProperty to one of the fields in your class (in this case, it maps the JSON @ odata.context property to the myText property of your class.
STORM source share