title: C# Convert Json string into Object
body: <p>I have been trying to get this working for 4 days now but I just cant seem to figure it out. Im receiving a json string through an api and want to parse the data into different strings and ints:</p>
  
  <p>Example Json String:</p>
  
  <pre><code>"[{\"Entry_number\":\"4\",\"Entry_date\":\"2019-01-10 18:22:55\",\"Customer_number\":\"16\",\"Entry_value\":\"13\",\"Comment\":\"Nu gaat ie t GVD doen\"},
      {\"Entry_number\":\"5\",\"Entry_date\":\"2019-01-12 14:34:23\",\"Customer_number\":\"16\",\"Entry_value\":\"10\",\"Comment\":\"TextBox\"},
      {\"Entry_number\":\"6\",\"Entry_date\":\"2019-01-12 14:34:31\",\"Customer_number\":\"16\",\"Entry_value\":\"10\",\"Comment\":\"Onrustig\"},
      {\"Entry_number\":\"7\",\"Entry_date\":\"2019-01-12 14:34:37\",\"Customer_number\":\"16\",\"Entry_value\":\"10\",\"Comment\":\"Ziek\"}]"
  </code></pre>
  
  <p>What im trying to convert to:</p>
  
  <pre><code>public class SleepEntry
  {
      string Entry_number;
      string Entry_date;
      string Customer_number;
      string Entry_value;
      string Comment;
  
      public string Entry_number1 { get =&gt; Entry_number; set =&gt; Entry_number = value; }
  
      public string Entry_date1 { get =&gt; Entry_date; set =&gt; Entry_date = value; }
  
      public string Customer_number1 { get =&gt; Customer_number; set =&gt; Customer_number = value; }
  
      public string Entry_value1 { get =&gt; Entry_value; set =&gt; Entry_value = value; }
  
      public string Comment1 { get =&gt; Comment; set =&gt; Comment = value; }
  }
  
  public class SleepData
  {
      private List&lt;SleepEntry&gt; plants; 
  
      public List&lt;SleepEntry&gt; Plants { get =&gt; plants; set =&gt; plants = value; }
  }
  </code></pre>
  
  <p>Code that reads the json:</p>
  
  <pre><code>    public void Get_Monthly_Data()
      {
  
  
          StreamReader reader = new StreamReader(@"C:\Users\Ruben\source\repos\Health App Goede\Health App Goede\Resources\Cutstomer_ID.txt");
          Customernumber = reader.ReadLine();
          reader.Close();
          //string json = entrys();
  
          //convert json to series objects
          SleepData sleepdata = JsonConvert.DeserializeObject&lt;SleepData&gt;(entrys());
  
      }
  
      public string entrys()
      {
          string json = get.get_customer_monitoring_entry("sleep", Customernumber);
  
          return json;
      }
  </code></pre>
  
  <p>Now I want to try and Check for each entry if the dat was this week. Then just get the Entry_value of eacht entry from this week and for now show it in a textbox. Any help or tips would be really appreciated.</p>