This project has moved and is read-only. For the latest updates, please go here.

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

Jan 20, 2010 at 10:37 AM



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?




Jan 22, 2010 at 10:29 PM

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

Jan 25, 2010 at 7:56 AM

Thank you.


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