title: Serialize JSON file to class and dictionary
body: <p>My class structure is fixed but object variables(properties) are not fixed. Those data are configurable. I am creating a class with a dictionary but it is not working.</p>
  
  <p>For ex.</p>
  
  <pre><code>{
  "datamapItems": [
        {
          "paramName": "VE8321C",
          "datamapKey": {
            "module": 1,
            "id": 1391
          },
          "min": "0",
          "max": "40",
          "default": 222,
          "rateHz": 0,
          "timeoutMs": 0,
          "dataType": "uint16"
        }
     ]
  }
  </code></pre>
  
  <p>For these JSON structure we have created following class structure. but it is not working. After serializing dictionary does not contain any value.</p>
  
  <pre><code>public class Datamap
  {
      [JsonProperty("datamapItems")]
      public List&lt;DatamapItem&gt; datamapItems { get; set; }
  }
  
  public class DatamapItem
  {
      public Dictionary&lt;object, object&gt; datamapitems = new Dictionary&lt;object, object&gt;();
      public DatamapKey datamapKey { get; set; }
  }
  public class DatamapKey
  {
      public Dictionary&lt;object, object&gt; datamapitems = new Dictionary&lt;object, object&gt;();
  }
  </code></pre>