Ravendb 960 does not honor JsonIgnore with property of Dictionary<string, object>
Posted
by
David Robbins
on Stack Overflow
See other posts from Stack Overflow
or by David Robbins
Published on 2012-10-20T20:10:14Z
Indexed on
2012/10/21
5:02 UTC
Read the original article
Hit count: 215
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?
© Stack Overflow or respective owner