public void deserializer_cs_should_properly_deserialize_inner_lists() { string json = @"[1,{a:1,b:2,c:[6,7,{a:'a',b:'2018-01-01'}]},3,null]"; dynamic dynObj = JsonToCsDeserializer.Deserialize(json); Assert.AreEqual( typeof(List <object>), dynObj[1]["c"].GetType()); }
public void deserializer_cs_should_properly_deserialize_inner_lists_version2() { string json = @"{a:1,b:2,c:[6,7,{a:'a',b:'2018-01-01',c:[1,2,3,{a:1}]}]}"; dynamic dynObj = JsonToCsDeserializer.Deserialize(json); Assert.AreEqual( typeof(List <object>), dynObj["c"].GetType()); Assert.AreEqual( typeof(List <object>), dynObj["c"][2]["c"].GetType()); }