title: DotLiquid Hash.FromAnonymousObject with Deserialized JSon Object
body: <p>I want to use DotLiquid to create HTML in my ASP Net Core 2.2 Project</p>
  
  <p>My data source comes from a JSon string which is passed to the method.</p>
  
  <p>After deserializing the string with DeserializeObject I get an error in the Hash.FromAnonymousObject method</p>
  
  <p>This works:</p>
  
  <pre><code>var stuff1 = new
  {
      Name = "John",
      Surname = "Smith",
      Addresses = new[] {
          new { City = "New York", State = "NY"},
          new { City = "Milano", State = "IT" }
      }
  };
  var hash1 = DotLiquid.Hash.FromAnonymousObject(stuff1);
  </code></pre>
  
  <p>This give me the error <strong>Incorrect number of arguments supplied for call to method 'Newtonsoft.Json.Linq.JToken get_Item(System.Object)' Parameter name: property</strong></p>
  
  <pre><code>dynamic stuff2 = JsonConvert.DeserializeObject("{
  'Name': 'John', 'Surname': 'Smith',
  'Addresses': [
      { 'City': 'New York', 'State': 'NY' },
      { 'City': 'Milano', 'State': 'IT' }
  ]}");
  var hash2 = DotLiquid.Hash.FromAnonymousObject(stuff2);
  </code></pre>