Estou trabalhando com C# e quero pegar parte do JSON
retornado pela requisição PostAsync
e este é o retorno da REQUEST
:
{"meta":{"status":422,"error":true},"error":{"status":1102,"msg":"Invalid email, enter email in the format email@yourprovider.com"}}
Criei a seguinte classe para verificar se error está com true
ou false
, mas não consegui pegar parte do JSON
e associar à classe.
public class Meta
{
[JsonProperty("meta.status")]
public string Status { get; set; }
[JsonProperty("meta.error")]
public bool Error { get; set; }
}