How to DeserializeObject a string with a curly braces in the value?
Solution 1:
Sounds like you have an incorrect class, shouldn't it be something like this instead?
public class Errors
{
public List<string> validationError { get; set; }
}
public class VerificationResponseError
{
public Errors errors { get; set; }
public string title { get; set; }
public int status { get; set; }
}
You can use this tool to verify that https://json2csharp.com/
Solution 2:
Your class does not represent your json structure. Try next:
public class VerificationResponseError
{
public Errors errors { get; set; }
public string title { get; set; }
public int status { get; set; }
}
public class Errors
{
public List<string> validationError { get; set; }
}
var result = JsonConvert.DeserializeObject<VerificationResponseError>(responseString);