This sample uses T:Newtonsoft.Json.Serialization.OnErrorAttribute to ignore the exception thrown setting the Roles property.
Sample