mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update JsonHelper.cs
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using UnityEngine;
|
||||
using LitJson;
|
||||
using TEngine;
|
||||
using LitJson;
|
||||
using System;
|
||||
|
||||
namespace TEngine
|
||||
{
|
||||
@@ -10,6 +9,10 @@ namespace TEngine
|
||||
{
|
||||
}
|
||||
|
||||
public object Deserialize(Type type, string json)
|
||||
{
|
||||
return JsonMapper.ToObject(json,type);
|
||||
}
|
||||
public T Deserialize<T>(string json)
|
||||
{
|
||||
return JsonMapper.ToObject<T>(json);
|
||||
@@ -25,7 +28,7 @@ namespace TEngine
|
||||
return JsonMapper.ToJson(jsonData);
|
||||
}
|
||||
|
||||
public string Serialize(Object jsonData)
|
||||
public string Serialize(object jsonData)
|
||||
{
|
||||
return JsonMapper.ToJson(jsonData);
|
||||
}
|
||||
|
Reference in New Issue
Block a user