chr
2024-08-21 9ee7d3bd9c58a204b1efe38e6be61155bbb15c16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
 
namespace AutoUpdater.Util
{
    public class JsonUtil
    {
        public static T Deserialize<T>(string jsonStr)
        {
            return JsonConvert.DeserializeObject<T>(jsonStr);
        }
 
        public static string Serialize(object obj)
        {
            return JsonConvert.SerializeObject(obj);
        }
 
    }
}