title: Deserialize JSON with Newtonsoft
body: <p>I'm having problems with this JSON to use it in combobox and datagridview. I'm using Newtonsoft to do it:</p>
  
  <pre><code>{
      "users": [
          {
              "id": 1,
              "name": "Test 1",
              "email": "test1@test.com",
              "events": [
                  {
                      "id": 1,
                      "name": "Event 1",
                      "date": "11/10/2019",
                      "finish": 0
  
                  },
                  {
                      "id": 2,
                      "name": "Event 2",
                      "date": "12/10/2019",
                      "finish": 0
                  }
              ]
          },
          {
              "id": 2,
              "name": "Test 2",
              "email": "test2@test.com",
              "events": [
                  {
                      "id": 2,
                      "name": "Event 2",
                      "date": "17/10/2019",
                      "finish": 0
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>And this is the class (JsonEvent.cs). Generated with json2csharp.com:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  
  namespace TestDO.Models
  {
      class JsonEvent
      {
          public partial class Admin
          {
              public List&lt;User&gt; Users { get; set; }
          }
  
          public partial class User
          {
              public long Id { get; set; }
              public string Name { get; set; }
              public string Email { get; set; }
              public List&lt;Event&gt; Events { get; set; }
          }
  
          public partial class Event
          {
              public long Id { get; set; }
              public string Name { get; set; }
              public string Date { get; set; }
              public long Finish { get; set; }
          }
      }
  }
  </code></pre>
  
  <p>But now, I do not know how to use the result with combobox datasource or a datagrid.</p>
  
  <p>So far the only time I've worked with this has been for a much simpler topic like this (this is and example, It is not related to this):
  JsonResponde.cs</p>
  
  <pre><code>namespace TestDO.Models
  {
      class JsonResponse
      {
          public string Upgraded { get; set; }
          public string time{ get; set; }
      }
  }
  </code></pre>
  
  <p>And then I check the result of Upgraded like this:</p>
  
  <pre><code>var jResponse = JsonConvert.DeserializeObject&lt;JsonResponse&gt;(json);
  if (jResponse.Upgraded == "true")
  </code></pre>
  
  <p>But I don't know how to do it with a more complex json.</p>
  
  <p>I want to use event id for combobox and event name for display.</p>
  
  <p>And for datagrid, user id, user name, event name, event date for each line.</p>
  
  <p>Thank you in advance for any help to solve the problem.</p>