Missing members

Sep 11, 2013 at 12:49 PM
I have a C# class that I am able to convert JSON to. If the input JSON has fields which are not in the C# class then I want to add the name/value pair to a dictionary which is defined in the class.

I know that I can use the JsonSerializerSettings in order to get a call back when there is a missing member. In that call back I can get the missing member name but cannot find the value associated with it.

Sorry for the newbie question. I did search the forum. I'd like to find the simplest solution possible. I do realize that I can write a custom converter but feels like overkill.