title: how to deserialize json with newtonsoft
body: <p>I'm quite new to JSON, specially serialization and deserialization. I have JSON like this, which i first serialize and put it inside variable. Now i want to get data out of this variable.</p>
  
  <pre><code>{
      "timestamp": "2017-06-20 12:12:10",
      "categories":
  [
      {
        "name": "Fiction",
      },
      {
        "name": "Roman",    
      }
  ]
  ,
      "types":
  [
      {
        "name": "Long story",
      },
      {
        "name": "Short story",      
      }
  ],
      "books":
  [
      {
          "title": "Song of ice and fire",
          "bookNumber": "1234567",
          "aisle":
          [
              {
                  "location": "fiction isle",
              },
              {
                  "location": "roman aisle",
              }
          ]
      }
  ]
  }
  </code></pre>
  
  <p>Stored in my var json</p>
  
  <p>** UPDATE 1**</p>
  
  <pre><code>    public List&lt;Books&gt; listOfBooks()
          {
              var bookList = new List&lt;Books&gt;
              {
                  new Books
                  {
                      title = "song of ice and fire"
                      bookNumber = "1234567",
                      aisle = listOfAisles()           
                  }
              };
              return bookList;
          }
  
  public List&lt;Aisle&gt; listOfAisles
  {
          var aisleList = new List&lt;Aisle&gt;
              {
                  new Aisle
                  {
                      location = "fiction aisle"
  
                  }
              };
              return aisleList;
  }
  
  MainProgram registerBooks = new MainProgram();
          var obj = new MainProgram
          {
              Timestamp = "2017-06-20 09:10:55",
              Books = listOfBooks(),
              listOfAisles = listOfAisles(),
              categories = listOfCategories(),
              types = listofTypes()
          };
  
  var _myJson = new JavaScriptSerializer().Serialize(object);
  
  Books _books = JsonConvert.DeserializeObject&lt;Books&gt;(_myJson);
  
  string _time = _books.Timestamp;
  </code></pre>
  
  <p>When i debug i get timestamp and put it in _time and it works fine...but when i try to get other items like categories.name, i can't reach those items.</p>
  
  <p>The problem is i may have many List items inside this JSON, not just one...i could have like 100 categories. how to get those items back?</p>
  
  <p>How should i do this?</p>
  
  <p>Thank you!</p>
  
  <p><strong>edit</strong></p>
  
  <pre><code>public class Books
  {
      public string title {get;set;}
      public string bookNumber {get;set;}
      public List&lt;aisle&gt; aisles {get;set;}
  }
  </code></pre>
  
  <p><strong>PS - lower/uppercase isn't the issue!</strong> it is due translation to english</p>