title: Why show me error when i convert JSON to string in C#
body: <p><strong>My code is  here for converting JSON to string in C#</strong></p>
  
  <p>here is my class</p>
  
  <pre><code>public class Datum
  {
      public string quantity { get; set; }
      public string price { get; set; }
      public string name { get; set; }
  }
  public class TableDetails
  {     
      public List&lt;Datum&gt; Data { get; set; }
      public string TableName { get; set; }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>here i parse this</p>
  
  <pre><code>TableDetails table = 
      JsonConvert.DeserializeObject&lt;TableDetails&gt;(context.DataFrame.ToString());
  </code></pre>
  
  <p><strong>Error is here</strong></p>
  
  <blockquote>
    <p>{"Error converting value \"[{\"quantity\":\"1\",\"price\":\"350\",\"name\":\"Thai Fried Chicken\"}]\" to type 'System.Collections.Generic.List`1[AlchameyWebsoket.Datum]'. Path 'Data', line 1, position 82."}</p>
  </blockquote>
  
  <p>I send this string from an android app here is the code i use in android</p>
  
  <p>try{</p>
  
  <pre><code>                    JSONObject mainObj=new JSONObject();
  
                      JSONArray arr=new JSONArray();
                      for(int i=0;i&lt;Memory.finalOrder.size();i++)
                      {
                          JSONObject jo = new JSONObject();
                          jo.put("name",Memory.finalOrder.get(i).getName());
                          jo.put("quantity",Memory.finalOrder.get(i).getQuantity());
                          jo.put("price",Memory.finalOrder.get(i).getPrice());
  
                          arr.put(jo);
                      }
  
                      mainObj.put("TableName",Memory.tableName);
                      mainObj.put("Data",arr.toString());
  </code></pre>
  
  <p>Please help me out of this problem</p>