Thursday, 15 January 2015

c# - Ignoring non-serializable type in JSON.NET -



c# - Ignoring non-serializable type in JSON.NET -

i using json.net in asp.net mvc application. in 1 of filter serializing action-arguments using json.net.

public override void onactionexecuting(httpactioncontext actioncontext) { jsonconvert.serializeobject(actioncontext.actionarguments);

this some-times throws error. how check if object in action-argument serializable or not or ignore if not-serializable?

c# asp.net-mvc json.net

No comments:

Post a Comment