Json.net and JsontIgnore in Serializing
i have an object which have an attribute of Serializable, this class
inherit from abstract class which inherit from other class which also
Serializable which inherit from an interface
i have used
string included = JsonConvert.SerializeObject(msg,
Formatting.Indented,
new JsonSerializerSettings {
/*ContractResolver = new
NotificationPropertyResolver()*/
TypeNameHandling = TypeNameHandling.All});
as msg is the interface I want to send this object in SignalR and i see
that it dont ignore any member, i have decorated the interface and the
classes
is there solution for that? i have tried also to use resolver with my own
attributes - but still same results
No comments:
Post a Comment