Newtonsoft.Json异常处理
var resultStr="{\"Success\":false,\"Data\":1}";
GetRequestPriceRendaInfo getrequestpriceinfo = Newtonsoft.Json.JsonConvert.DeserializeObject<GetRequestPriceRendaInfo>(resultStr,new JsonSerializerSettings
{
Error =delegate(object obj,Newtonsoft.Json.Serialization.ErrorEventArgs args)
{
args.ErrorContext.Handled = true;
}
});