title: Show json error tag in C#
body: <p>I have a json in an Api with an error tag. Now I want to show the error content in c# when an error occurs. Does anyone have a code or an example for this? </p>
  
  <p>--Edited--</p>
  
  <pre><code>string html = string.Empty;
  string url = @"http://henn.worteus.eu/?tag=getdatas&amp;token=21123&amp;id=" + sessions;
  
  WebRequest req = WebRequest.Create(url);
  req.ContentType = "application/json";
  WebResponse resp = req.GetResponse();
  Stream stream = resp.GetResponseStream();
  StreamReader re = new StreamReader(stream);
  string json = re.ReadToEnd();
  
  // Wrapper w = (Wrapper)new JavaScriptSerializer().Deserialize(json, typeof(Wrapper));
  Wrapper w = (Wrapper)JsonConvert.DeserializeObject(json, typeof(Wrapper));
  
  dataGrid.ItemsSource = w.data;
  </code></pre>
  
  <p>Here are the data models</p>
  
  <pre><code>public class Data
  {
      public string Skala { get; set; }
      public string Wert { get; set; }
      public string Bereich { get; set; }
      public string Interpretationen { get; set; }
  }
  
  public class Wrapper
  {
      public List&lt;Data&gt; data { get; set; }
      public string tag { get; set; }
      public object error { get; set; }
  }
  </code></pre>