Hello I have here a json. In my code below it is html. My Problem is that I become this error : An Exception error of type "System.NullReferenceException" has occurred. I have also debug the code "html" have the json data but in the next to lines the Content are null.
"{\"data\":[{\"q_id\":\"1\",\"q_text\":\"Ich read technical.\"},{\"q_id\":\"2\",\"q_text\":\"I have a good appetit.\"},{\"q_id\":\"3\",\"q_text\":\"I wake up early in the morning.\"}
That is my code
var g = new System.Web.Script.Serialization.JavaScriptSerializer().DeserializeObject(html) as Dictionary<string, object>;
var h = g["data"] as Dictionary<string, object>;
lbfield.Content = h["q_text"].ToString();