Ravendb 960 does not honor JsonIgnore with property of Dictionary<string, object>
- by David Robbins
Does JsonIgnore not work when a property has data? I have the followin class:
public class SomeObject
{
public string Name { get; set; }
public DateTime Created { get; set; }
public List<string> ErrorList { get; set; }
[JsonIgnore]
public Dictionary<string, object> Parameters { get; set; }
public SomeObject()
{
this.ErrorList = new List<string>();
this.Parameters = new Dictionary<string, object>();
}
}
My expectation was that JsonIgnore would exclude properties from De- / Serialization. My RavenDB document has data. Am I missing something?