title: Serialize hashtable using Json.Net
body: <p>I have a hashtable whose keys are of type integer, however when deserializing using json.net the keys come back as strings, is there a way to keep the key type on hashtable using json.net serialization/deserialization? This hashtable is a property of the type 'MyType'</p>
  
  <pre><code>var settings = new JsonSerializerSettings();
  settings.TypeNameHandling = TypeNameHandling.Objects;
  string json = JsonConvert.SerializeObject(o, Formatting.Indented, settings);
  
   mo = JsonConvert.DeserializeObject&lt;MyType&gt;(json, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects });
  
  public Hashtable jsonViews
  {
      get { return mViews; }
      set { mViews = value; }
  }
  </code></pre>