cloudflight
2024-07-27 bf63476bc5de49e5b16be35fda57f696ecf8c987
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Hydro.CommonBase
{
    public class Json
    {
        public static string Serialize(object obj)
        {
            return JsonConvert.SerializeObject(obj);
        }
        public static T Deserialize<T>(string json) 
        {
            return JsonConvert.DeserializeObject<T>(json);
        }
    }
}