Good I am doing a POST request in C # and I receive the following answer:
"resp": {
"clave": "50623081800310267146900100001010000000135127983503",
"fecha": "2018-08-31T18:05:54-06:00",
"ind-estado": "aceptado",
"respuesta-xml": "PD94bWwgdmVyc2lvbj0i
}
I want to get the code of ind-estado
IRestResponse response2 = client.Execute(request);
dynamic x= JsonConvert.DeserializeObject<dynamic>(response2.Content);
richTextBox1.Text = " " + x.resp.fecha;
/////////// THAT WORKS ME TO OBTAIN THE DATE. THE PROBLEM IS THAT WHEN I WANT
That works for me to get the date, the problem, is when I want to get x.resp.ind-estado
and add it to RichTextBox
, Visual Studio marks a syntax error
The name
estado
does not exist in the current context
How can I solve it?