new IJsonSerializer, moves other base cache refresher classes

This commit is contained in:
Shannon
2019-11-07 21:28:56 +11:00
committed by Bjarke Berg
parent 15bf971f04
commit 69c2b732ce
13 changed files with 63 additions and 19 deletions
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Umbraco.Core.Serialization
{
public class JsonNetSerializer : IJsonSerializer
{
public string Serialize(object input)
{
return JsonConvert.SerializeObject(input);
}
public T Deserialize<T>(string input)
{
return JsonConvert.DeserializeObject<T>(input);
}
}
}