title: unexpected character encountered while parsing value . path '' line 0 position 0
body: <p>I have txt file that contains json formatted data. file content looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/4DZjj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4DZjj.png" alt="Defter.txt"></a></p>
  
  <p>My conversion code is;</p>
  
  <pre><code>byte[] fileContent =  // Read txt file
  
  JournalFake journalFake = JsonConvert.DeserializeObject&lt;JournalFake&gt;(Encoding.UTF8.GetString(fileContent), new LineNumberConverter());
  </code></pre>
  
  <p>If I observe value of <code>Encoding.UTF8.GetString(fileContent)</code> with Quick Watch, value of <code>Encoding.UTF8.GetString(fileContent)</code> is below;</p>
  
  <p><a href="https://i.stack.imgur.com/wXmxJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wXmxJ.png" alt="value of Encoding.UTF8.GetString(fileContent)"></a></p>
  
  <p>When I copy this json data to jsoneditoronline.org to check if json is valid, it gives me an error like below(a dot appears at the head of json file).</p>
  
  <p><a href="https://i.stack.imgur.com/0X0AO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0X0AO.png" alt="json data on jsoneditoronline.org"></a></p>
  
  <p>If I run <code>JournalFake journalFake = JsonConvert.DeserializeObject&lt;JournalFake&gt;(Encoding.UTF8.GetString(fileContent), new LineNumberConverter());</code> statement,
  it throws an error: <code>unexpected character encountered while parsing value . path '' line 0 position 0</code></p>
  
  <p>What goes wrong? Any help?</p>