title: Unexpected character encountered while parsing value
body: <p>Currently, I have some issues. I'm using C# with Json.NET. The issue is that I always get:</p>
  <blockquote>
  <p>{&quot;Unexpected character encountered while parsing value: e. Path '', line 0, position 0.&quot;}</p>
  </blockquote>
  <p>So the way I'm using Json.NET is the following. I have a Class which should be saved. The class looks like this:</p>
  <pre><code>public class stats
  {
      public string time { get; set; }
      public string value { get; set; }
  }
  
  public class ViewerStatsFormat
  {
      public List&lt;stats&gt; viewerstats { get; set; }
      public String version { get; set; }
  
      public ViewerStatsFormat(bool chk)
      {
          this.viewerstats = new List&lt;stats&gt;();
      }
  }
  </code></pre>
  <p>One object of this class will be filled and saved with:</p>
  <pre><code> File.WriteAllText(tmpfile, JsonConvert.SerializeObject(current), Encoding.UTF8);
  </code></pre>
  <p>The saving part works fine and the file exists and is filled. After that the file will be read back into the class with:</p>
  <pre><code>try 
  { 
      ViewerStatsFormat current = JsonConvert.DeserializeObject&lt;ViewerStatsFormat&gt;(tmpfile);
      //otherstuff        
  }
  catch(Exception ex)
  {
      //error loging stuff
  }
  </code></pre>
  <p>Now on the current= line comes the exception:</p>
  <blockquote>
  <p>{&quot;Unexpected character encountered while parsing value: e. Path '', line 0, position 0.&quot;}</p>
  </blockquote>
  <p>I don't know why this comes. The JSON file is the following -&gt; <a href="http://twitch.justgameplay.de/updater/dashboard/debug/24-04-2014.json" rel="noreferrer">Click me I am the JSON link</a></p>
  <p>Does anyone have any ideas?</p>