using System.Collections.Generic;
public static void Main()
""error"": ""RecordInvalid"",
""description"": ""Record validation errors"",
""description"": ""Email: mark.vaugh@gmail.com is already being used by another user"",
""error"": ""DuplicateValue""
""description"": ""Name: is too short (minimum one character)"",
""error"": ""ValueTooShort""
var result = JsonConvert.DeserializeObject<ZendeskError>(json);
result.ErrorDetails["email"][0].Dump();
result.ErrorDetails["email"][1].Dump();
public class ZendeskError
[JsonProperty("details")]
public Dictionary<string, List<PropertyFailureInformation>> ErrorDetails { get; set; }
[JsonProperty("description")]
public string ErrorDescription { get; set; }
public string Error { get; set; }
public class PropertyFailureInformation
[JsonProperty("description")]
public string Description { get; set; }
public string Error { get; set; }