1
I’m working with C# and I want to take part of JSON returned by request PostAsync and this is the return of REQUEST:
{"meta":{"status":422,"error":true},"error":{"status":1102,"msg":"Invalid email, enter email in the format [email protected]"}}
I created the following class to check if error is with true or false, but I couldn’t get part of the JSON and associate with the class.
public class Meta
{
[JsonProperty("meta.status")]
public string Status { get; set; }
[JsonProperty("meta.error")]
public bool Error { get; set; }
}
Grateful @Virgilio Novic, tested and worked
– RRV