title: How to get list of objects from json string c# Newtonsoft.json
body: <p>I am trying to convert a JSON string into a list of objects but am getting the error</p>
  
  <p>Cannot deserialize the current JSON object into type List because the type requires a JSON array to deserialize correctly.</p>
  
  <p>I retrieve the json and it looks like this</p>
  
  <pre><code>{
      "Code":0,
      "Message":"OK",
      "Data":
      {
          "Houses":
          [
              {
                  "Id":1,
                  "Name":"House 1",
                  "Area":"22.00",
                  "ShortName":"H1",
                  "FarmName":"Farm 1"
              },
              {
                  "Id":2,
                  "Name":"Farmi1 - House 1",
                  "Area":"1000.00",
                  "ShortName":"H1",
                  "FarmName":"Farm 1"
              }
          ]
      }
  }
  </code></pre>
  
  <p>I then say </p>
  
  <pre><code>List&lt;House&gt; Houses = JsonConvert.DeserializeObject&lt;List&lt;House&gt;&gt;(json); 
  </code></pre>