title: JSON.NET Deserialize Nested data from URL
body: <p>I am trying to get JSON data via my localhost into command line.  When I navigate the page via my web browser the following JSON is retuned:  (I am using VS 2008)  </p>
  
  <pre><code>(http://LocalHost/example/00012/json.sp)
  
  {"errors":[],
   "valid":true,
   "results":[{"address1":"2000 MAX1MAX2 ROAD","city":"Sunny City     ","state":"FL","zip":"00012"}]}
  </code></pre>
  
  <p>I would like to be able to call the data while utilizing the nested object (List) so that I am able to call the parameters from that object. Here is what I have so far. 
  I have the following in my code for the public classes: </p>
  
  <pre><code>public class Result
  {
      public string address1 { get; set; }
      public string city { get; set; }
      public sting state { get; set; }
      public sting zip { get; set; }
         }
   public class RObject
  {
      public List&lt;object&gt; errors { get; set; }
      public bool valid { get; set; }
      public List&lt;Result&gt; results { get; set; }
  }
  </code></pre>
  
  <p>Here is my code that I use to get the data:</p>
  
  <pre><code>var request = WebRequest.Create("http://local4510/example/00012/json.sp ");
          WebResponse response = request.GetResponse();
  
          string json;
  
          using (var sr = new StreamReader(response.GetResponseStream()))
          {
              json = sr.ReadToEnd();
          }
          JObject jResult = JObject.Parse(json); // Parses the data
  
          Result me = new Result()
          {
             Me.address1 = (string)jResult["results"][" address1 "] 
      Me city = (string)jResult["results"][" city "] 
  Me state  = (string)jResult["results"][" state "] 
             Me zip = (string)jResult["results"]["zip"]
          };
  
  //Console.Write(jResult); working
     Console.Write(me.address1+ ”--” + me.city+”--” + me.state+”--”+ me.zip)
  Console.Read();
  </code></pre>