parent
2075f676b9
commit
dc47cec8bd
|
|
@ -52,7 +52,10 @@ namespace Guru
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// return JsonMapper.ToObject<T>(jsonStr);
|
// return JsonMapper.ToObject<T>(jsonStr);
|
||||||
return JsonConvert.DeserializeObject<T>(jsonStr);
|
return JsonConvert.DeserializeObject<T>(jsonStr, new JsonSerializerSettings()
|
||||||
|
{
|
||||||
|
ObjectCreationHandling = ObjectCreationHandling.Replace,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue