title: Invalid JSON primitive when deserializing
body: <p>Alright, so having this issue when I try to run my application:</p>
  
  <blockquote>
    <p>Invalid JSON primitive: .</p>
  </blockquote>
  
  <pre><code>public static void ReloadConfig()
  {
      if (!File.Exists("config.cfg"))
      {
          StringBuilder sb = new StringBuilder();
  
          sb.Append("{\r\n");
          sb.Append("\"Admins\":[76561198214617172],\r\n");
          sb.Append("\"Chatty\":false,\r\n");
          sb.Append("}");
  
          File.WriteAllText("config.cfg", sb.ToString());
      }
      try
      {
          JavaScriptSerializer jss = new JavaScriptSerializer();
          config = jss.Deserialize&lt;Roles&gt;(File.ReadAllText("config.cfg"));
      }
      catch (Exception e)
      {
          Console.WriteLine(e.Message);
          Console.ReadKey();
          ReloadConfig();
      }
  }
  </code></pre>
  
  <p>And this is how the config looks like when it's generated:</p>
  
  <pre><code>{
  "Admins":[76561198214617172],
  "Chatty":false,
  }
  </code></pre>
  
  <p>As from my error message I would assume it says I have a space in my config, but I do not have that. </p>
  
  <p>And if that matters I use <code>System.Web.Script.Serialization</code>.</p>