Throw exception if clr objects property is not found in json string

Jan 20, 2010 at 9:37 AM

Hello,

 

is it possible to specify that the deserializer throws an exception in case a property of the CLR object is not found in the json string?

 

BR,

Kevin

Coordinator
Jan 22, 2010 at 9:29 PM

Add a JsonPropertyAttribute to the property and set the Required member on it.

Jan 25, 2010 at 6:56 AM

Thank you.

 

Must have been blind... thought I had looked for a property of that kind on this attribute.