title: "Unexpected character encountered while parsing value: S. Path '', line 0, position 0."
body: <p>I know there are already a lot of posts about this, but I couldn't find one to fix my problem. Btw I already checked if the encoding is wrong. Also, sometimes the Exception throws and sometimes not. If it doesn't throw, &quot;amd&quot; is &quot;Nothing&quot; in the debugger.</p>
  <p>Here is my code to deserialize the json-File</p>
  <pre><code>    If OpenfilePath IsNot Nothing Then
          Dim myStreamReader As New StreamReader(OpenfilePath)
          Dim amd = JsonConvert.DeserializeObject(Of RootObject())(myStreamReader.ToString) 'That's where the Exception appears
      End If
  </code></pre>
  <p>Here is the Root Object Class (the class was automatically created by VS, i just added the JsonProperties and changed the name of the Public Properties):</p>
  <pre><code>Public Class RootObject
  
  Public Class Rootobject
      &lt;JsonProperty(PropertyName:=&quot;Artikelstammdaten&quot;)&gt;
      Public Property ArticleMasterData() As ArticleMasterData
      &lt;JsonProperty(PropertyName:=&quot;Stueckliste&quot;)&gt;
      Public Property MaterialCosts() As MaterialCosts
      &lt;JsonProperty(PropertyName:=&quot;Arbeitsgaenge&quot;)&gt;
      Public Property ManufacturingCosts() As ManufacturingCosts
  End Class
  
  Public Class ArticleMasterData
      &lt;JsonProperty(PropertyName:=&quot;Artikelnummer&quot;)&gt;
      Property VPartNumber() As String
      &lt;JsonProperty(PropertyName:=&quot;BezeichnungDE&quot;)&gt;
      Property DesignationDE() As String
      &lt;JsonProperty(PropertyName:=&quot;BezeichnungEN&quot;)&gt;
      Property DesignationEN() As String
      &lt;JsonProperty(PropertyName:=&quot;Einheit&quot;)&gt;
      Property Unit() As String
      &lt;JsonProperty(PropertyName:=&quot;Mat_Grp&quot;)&gt;
      Property MatGrp() As String
      &lt;JsonProperty(PropertyName:=&quot;Kostenart&quot;)&gt;
      Property CostType() As Integer
      &lt;JsonProperty(PropertyName:=&quot;VertriebstextDE&quot;)&gt;
      Property SalesTextDE() As String
      &lt;JsonProperty(PropertyName:=&quot;VertriebstextEN&quot;)&gt;
      Property SalesTextEN() As String
      &lt;JsonProperty(PropertyName:=&quot;Stueckliste&quot;)&gt;
      Property MaterialCosts() As String
      &lt;JsonProperty(PropertyName:=&quot;Status&quot;)&gt;
      Property Status() As String
      &lt;JsonProperty(PropertyName:=&quot;Klasse&quot;)&gt;
      Property ClassName() As String
      &lt;JsonProperty(PropertyName:=&quot;Mantelflaeche&quot;)&gt;
      Property Sheathing() As Double
      &lt;JsonProperty(PropertyName:=&quot;Gewicht&quot;)&gt;
      Property Weight() As Double
      &lt;JsonProperty(PropertyName:=&quot;KlasseID&quot;)&gt;
      Property ClassID() As String
  End Class
  
  Public Class MaterialCosts
      &lt;JsonProperty(PropertyName:=&quot;Verkaufsartikel&quot;)&gt;
      Property VPartNumber() As String
      &lt;JsonProperty(PropertyName:=&quot;Position&quot;)&gt;
      Property Position() As Integer
      &lt;JsonProperty(PropertyName:=&quot;PosArtikel&quot;)&gt;
      Property PosVpart() As String
      &lt;JsonProperty(PropertyName:=&quot;PosBezeichnung&quot;)&gt;
      Property PosDesignation() As String
      &lt;JsonProperty(PropertyName:=&quot;PosKostenart&quot;)&gt;
      Property PosCostType() As Integer
      &lt;JsonProperty(PropertyName:=&quot;Datum&quot;)&gt;
      Property FiledDate() As Date
      &lt;JsonProperty(PropertyName:=&quot;Material&quot;)&gt;
      Property Material() As Double
      &lt;JsonProperty(PropertyName:=&quot;GMK&quot;)&gt;
      Property GMK() As Double
      &lt;JsonProperty(PropertyName:=&quot;Lohn&quot;)&gt;
      Property Wage() As Double
      &lt;JsonProperty(PropertyName:=&quot;Menge&quot;)&gt;
      Property Unit() As Double
      &lt;JsonProperty(PropertyName:=&quot;Mengeneinheit&quot;)&gt;
      Property UnitOfMeasure() As String
  End Class
  
      Public Class ManufacturingCosts
          &lt;JsonProperty(PropertyName:=&quot;Verkaufsartikel&quot;)&gt;
          Property VPartNumber As String
          &lt;JsonProperty(PropertyName:=&quot;AGNR&quot;)&gt;
          Property AGNR As Integer
          &lt;JsonProperty(PropertyName:=&quot;Bereich&quot;)&gt;
          Property Area As String
          &lt;JsonProperty(PropertyName:=&quot;Lohn&quot;)&gt;
          Property Wage As Double
          &lt;JsonProperty(PropertyName:=&quot;Kostenstelle&quot;)&gt;
          Property CostType As Integer
          &lt;JsonProperty(PropertyName:=&quot;Zeit&quot;)&gt;
          Property Time As Double
          &lt;JsonProperty(PropertyName:=&quot;ARBPLATZ&quot;)&gt;
          Property Workplace As String
      End Class
  
  End Class
  </code></pre>
  <p>And my json-File:</p>
  <pre><code>    {
      &quot;Artikelstammdaten&quot;: [{&quot;Artikel&quot;: [&quot;VAUBEF0010&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0030&quot;]}, 
                          {&quot;BezeichnungDE&quot;: [&quot;Sammelbandantrieb&quot;, &quot;Sammelbandantrieb&quot;, &quot;Befuellpunkt einfach Behaelter + Karton&quot;, &quot;Befuellpunkt doppelt&quot;, &quot;Befuellpunkt doppelt Karton FZPS415&quot;, &quot;Befuellpunkt Seitenshutter 1 Stellung&quot;, &quot;Befuellpunkt Leistungsshutter&quot;]},
                          {&quot;BezeichnungEN&quot;: [&quot;Collectiong belt drive N50&quot;, &quot;Concave collecting belt&quot;, &quot;&quot;, &quot;Filling point double&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;]},
                          {&quot;Einheit&quot;: [&quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;]},
                          {&quot;Mat_Grp&quot;: [&quot;VAU&quot;, &quot;VAU&quot;, &quot;VAU&quot;, &quot;&quot;, &quot;VAU&quot;, &quot;VAU&quot;, &quot;VAU&quot;]},
                          {&quot;Kostenart&quot;:[1500, 1500, 1500, 1500, 1500, 1500, 1500]},
                          {&quot;Vertriebstext_DE&quot;:[&quot;*Antrieb, Umlenkungen, Spanner* Elektrische Absicherung + Verkabelung* Elektro-Insallationsmaterial anteilig&quot;, &quot;Stück Permatantrieb Mudenband N500 v1,5 EkWbeinhaltet:*Antrieb*Spanner; Umleknteill䮧en inkl. Gel䮤er* Kabelrinne Schaltschrank bis Motor* Starterkombination*&quot;, &quot;&quot;, &quot;Beinhaltet folgende Teile: *Befüllrcihter, Seitenshutter, Rüttelklemmung, Abdeckungen, FZPS Lichtgitter&quot;, &quot;NULL&quot;, &quot;NULL&quot;, &quot;NULL&quot;]},
                          {&quot;Vertriebstext_EN&quot;:[&quot;*Drive, deflections&quot;, &quot;Stück Permaantrieb&quot;, &quot;&quot;, &quot;Includes: *funnel, slide&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;]},
                          {&quot;Stueckliste&quot;:[&quot;VAUBEF0010&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0030&quot;]},
                          {&quot;Status&quot;: [&quot;F&quot;, &quot;F&quot;, &quot;G&quot;, &quot;F&quot;, &quot;G&quot;, &quot;G&quot;, &quot;G&quot;]},
                          {&quot;Klasse&quot;: [&quot;VTPIMV&quot;, &quot;VTPIMV&quot;, &quot;VTPIMV&quot;, &quot;VTPIMV&quot;, &quot;VTPIMV&quot;, &quot;VTPIMV&quot;, &quot;VTPIMV&quot;]},
                          {&quot;Mantelflaeche&quot;:[1, 1, 12, 12, 12, 0.5, 0.5]},
                          {&quot;Gewicht&quot;:[120, 120, 500, 500, 500, 20, 30]},
                          {&quot;KlasseID&quot;:[&quot;1.2.6.4&quot;, &quot;1.2.6.4&quot;, &quot;&quot;, &quot;2.1.6&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;]}],
      &quot;Stueckliste&quot;: [{&quot;Verkaufsartikel&quot;:[&quot;VAUBEF0010&quot;, &quot;VAUBEF0010&quot;, &quot;VAUBEF0010&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0030&quot;, &quot;VAUBEF0030&quot;, &quot;VAUBEF0030&quot;]},
                      {&quot;Position&quot;:[10, 20, 30, 10, 20, 30, 10, 20, 30, 10, 20, 25, 10, 20, 30, 10, 20, 30, 10, 20, 30]},
                      {&quot;PosArtikel&quot;:[&quot;Z0306251&quot;, &quot;Z0072937&quot;, &quot;Z0072900&quot;, &quot;Z0306251&quot;, &quot;Z0072937&quot;, &quot;Z0072900&quot;, &quot;Z0073240&quot;, &quot;Z08636568&quot;, &quot;Z0073560&quot;, &quot;Z0926005&quot;, &quot;Z0907896&quot;, &quot;Z0945783&quot;, &quot;Z0296202&quot;, &quot;Z0073328&quot;, &quot;Z0073560&quot;, &quot;Z0073240&quot;, &quot;Z0175446&quot;,
                                      &quot;Z0175752&quot;, &quot;Z0073240&quot;, &quot;Z0175448&quot;, &quot;Z0073455&quot;]},
                      {&quot;PosBezeichnung&quot;:[&quot;VEL Elektro- Montagematerial anteilig pr&quot;, &quot;VEL Kabelrinnenmaterial anteilig pro Ant&quot;, &quot;Versorgung Elektrik 60m 4G1,5 Kabel&quot;, &quot;VEL Elektro-MOntagematerial anteilig pr&quot;, &quot;VEL Kabelrinnenmaterial anteilig pro Ant&quot;, &quot;Versorgung Elektrik 60m 4G1,5 Kabel&quot;, &quot;Aktor Ventil Kabel&quot;, &quot;CANIO 16-32 Fix&quot;, &quot;GEhause Befuellungspunkt-Frequenzumrichter&quot;, &quot;VEL Befuellpunkt doppelt&quot;, &quot;Befuellpunkt Schaltschrank mit PCX, FU&quot;, &quot;Bedienpult PCX&quot;,&quot;Aktor Ventil-Kabel gewichtiet&quot;, &quot;CANIO 16-8 Wahl PCX&quot;, &quot;Gehaeuse Befuellpunkt Frequenzumrichter&quot;, &quot;Aktor Ventil-Kabel&quot;, &quot;Halterung fuer GL6-Lichtschranke&quot;, &quot;Kabel m12 5m&quot;, &quot;Aktor Ventil-Kabel&quot;, &quot;Kabel M8 5m&quot;, &quot;Sensor-Reedkontakt&quot;]},
                      {&quot;PosKostenart&quot;:[9105, 9105, 9105, 9105, 9105, 9105, 9111, 9103, 9106, 9106, 9106, 9103, 9111, 9101, 9106, 9111, 9110, 9111, 9111, 9111, 9102]},
                      {&quot;Datum&quot;:[&quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;, &quot;2022-01-31&quot;]},
                      {&quot;Material&quot;:[60.41, 160.28, 38.68, 60.41, 160,28, 38.68, 12.36, 105.31, 665.99, 3965.23, 3489.32, 1317.19, 41.2, 323.2, 665.99, 4.12, 28.64, 3.68, 8.24, 5.54, 74.06]},
                      {&quot;GMK&quot;:[3.63, 9.62, 2.32, 3.63, 9.62, 2.32, 0.75, 6.32, 39.94, 237.85, 209.37, 79.04, 2.5, 19.4, 39.94, 0.25, 1.76, 0.22, 0.5, 0.34, 4.44]},
                      {&quot;Lohn&quot;:[2.06, 0, 0, 2.06, 0, 0, 0, 19.39 ,229.28, 149.02, 1322.23, 89.21, 0, 32.2, 229.28, 0, 18.32, 0, 0, 0, 0]},
                      {&quot;Menge&quot;:[1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 10, 2, 1, 1, 4, 1, 2, 2, 2]},
                      {&quot;Mengeneinheit&quot;:[&quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;, &quot;STK&quot;]}],
      &quot;Arbeitsgänge&quot;: [{&quot;Verkaufsartikel&quot;:[&quot;VAUBEF0010&quot;, &quot;VAUBEF0010&quot;, &quot;VAUBEF0010&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0011&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0015&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0016&quot;, &quot;VAUBEF0020&quot;,
                                          &quot;VAUBEF0020&quot;, &quot;VAUBEF0020&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0025&quot;, &quot;VAUBEF0030&quot;, &quot;VAUBEF0030&quot;, &quot;VAUBEF0030&quot;]},
                      {&quot;AGNR&quot;:[10, 20, 6, 10, 20, 6, 10, 100, 20, 10, 100, 110, 10, 100, 20, 10, 100, 30, 10, 100, 30]},
                      {&quot;Bereich&quot;:[&quot;Mechanische Montage&quot;, &quot;Elektrische Montage&quot;, &quot;TF - Mechanik&quot;, &quot;TF - Elektrik&quot;, &quot;Mechanische Montage&quot;, &quot;Elektrische Montage&quot;, &quot;Elektrische Montage&quot;, &quot;Mechanische Montage&quot;, &quot;Systembau Stationsabnahme QS&quot;,
                                  &quot;Elektrische Montage&quot;, &quot;Mechanische Montage&quot;, &quot;Stationsabnahme Stationsabnahme QS&quot;, &quot;Systembau Verpacken&quot;, &quot;Mechanische Montage&quot;, &quot;Systembau Stationsabnahme QS&quot;, &quot;Elektrische Montage&quot;, &quot;Systembau Mechanik Stationsaufbau&quot;,
                                  &quot;Mechanische Montage&quot;, &quot;Systembau Mechanik Stationsaufbau&quot;, &quot;Systembau Stationsabnahme QS&quot;, &quot;Mechanische Montage&quot;]},
                      {&quot;Lohn&quot;:[89.1, 160.38, 168, 106.92, 160.38, 168, 320.76, 9.8583, 213.84, 427.79988, 21.1, 100, 427.68, 19.71665, 213.84, 61.5, 2.75, 16.2, 25.625, 2.766665, 16.2]},
                      {&quot;Kostenstelle&quot;:[523500, 523500, 522000, 523500, 523500, 522000,  523500, 906045, 523500, 523500, 906045, 906045, 523500, 906045, 523500, 906045, 906045, 523500, 906056, 906045, 523500]},
                      {&quot;Zeit&quot;:[148.5, 267.3, 180, 178.2, 267.3, 180, 534.6, 11.83, 356.4, 713, 25.32, 120, 712.8, 23.66, 356.4, 73.8, 3.3, 27, 30.75, 3.32, 27]},
                      {&quot;ARBPLATZ&quot;:[&quot;K950M&quot;, &quot;K950E&quot;, &quot;K420M&quot;, &quot;K950M&quot;, &quot;K950E&quot;, &quot;K420M&quot;, &quot;K950M&quot;, &quot;683SAB&quot;, &quot;K950E&quot;, &quot;K950M&quot;, &quot;683SAB&quot;, &quot;683V&quot;, &quot;K950M&quot;, &quot;683SAB&quot;, &quot;K950E&quot;, &quot;683&quot;, &quot;683SAB&quot;, &quot;K950M&quot;, &quot;683&quot;, &quot;683SAB&quot;, &quot;K950M&quot;]}]
  }
  </code></pre>