title: JSON.NET Deserializing from file
body: <p>I'm trying to deserialize an array from a file. I keep getting the error &quot;cannot deserialize JSON object into array&quot; because it is apparently not in the correct format. However, I copied the JSON into a string and used it within the C# class and everything works fine. When I went back to getting it from the file, same error as before. I have no idea what the issue is!</p>
  <p>The in-class JSON string:</p>
  <pre><code>string json = @&quot;[{
                  'id': 1,
                  'name': '...',
                  'image': '...',
                  'attack': 12,
                  'defense': 3,
                  'magic': 4,
                  'speed': 2,
                  'hp': 20
              },
              {   
                  'id': 2,
                  'name': '...',
                  'image': '...',
                  'attack': 3,
                  'defense': 14,
                  'magic': 9,
                  'speed': 7,
                  'hp': 14
  
  
              },
              {
                  'id': 3,
                  'name': '...',
                  'image': '...',
                  'attack': 3,
                  'defense': 14,
                  'magic': 9,
                  'speed': 7,
                  'hp': 14
              }
  
              ]&quot;;
  
  monsters = JsonConvert.DeserializeObject&lt;List&lt;Monster&gt;&gt;(json);
  </code></pre>
  <p>And the file:</p>
  <pre><code>[
      {
          'id': 1,
          'name': '...',
          'image': '...',
          'attack': 12,
          'defense': 3,
          'magic': 4,
          'speed': 2,
          'hp': 20
      },
      {
          'id': 2,
          'name': '...',
          'image': '...',
          'attack': 15,
          'defense': 5,
          'magic': 3,
          'speed': 4,
          'hp': 17
      }
  ]
  
  
  monsters = JsonConvert.DeserializeObject&lt;List&lt;Monster&gt;&gt;(File.ReadAllText(@&quot;Content\Data\monsterData.json&quot;));
  </code></pre>
  <p>monsters is defined as List above.</p>
  <p>What am I doing wrong?</p>