title: Using JSON.NET and C# reading file and deserialize the JSON fails
body: <p>I have a JSON file named 'movies.json' which contains an object and an array of 3 movies. The JSON in movies.json looks like this: </p>
  
  <pre><code>{
    "theMovies": [
      {
        "name": "Starship Troopers",
        "year": 1997
      },
      {
        "name": "Ace Ventura: When Nature Calls",
        "year": 1995
      },
      {
        "name": "Big",
        "year": 1988
      }
    ]
  }
  </code></pre>
  
  <p>I also have a class named Movie</p>
  
  <pre><code>public class Movie
  {
      public string Name { get; set; }
      public int Year { get; set; }
  }
  </code></pre>
  
  <p>I am trying to read the file into a string and deserialize the JSON to a type of Movie like this:</p>
  
  <pre><code> Movie movie1 = JsonConvert.DeserializeObject&lt;Movie&gt;(File.ReadAllText(@"c:\Temp\movies.json"));
  </code></pre>
  
  <p>and like this: </p>
  
  <pre><code>using (StreamReader file = File.OpenText(@"c:\Temp\movies.json"))
          {
              JsonSerializer serializer = new JsonSerializer();
              Movie movie2 = (Movie)serializer.Deserialize(file, typeof(Movie));
              Console.WriteLine(movie2.Name);
              Console.WriteLine(movie2.Year);
          }
  </code></pre>
  
  <p>Neither one works.  Both movie1 and movie2 show no real data the Watch window:</p>
  
  <pre><code>movie1.Name = null
  movie1.Year = 0
  movie2.Name = null
  movie2.Year = 0
  </code></pre>
  
  <p>Apparently having an object with an array inside is not  working.  Any suggestions? </p>