mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
22 lines
494 B
C#
22 lines
494 B
C#
using System.Text;
|
|
using System.Web.Script.Serialization;
|
|
|
|
namespace Roblox.Common
|
|
{
|
|
public abstract class Json
|
|
{
|
|
public virtual string Serialize()
|
|
{
|
|
if (SerializedData == null)
|
|
{
|
|
var value = new JavaScriptSerializer().Serialize(this);
|
|
SerializedData = value.Convert(Encoding.Unicode, Encoding.UTF8);
|
|
}
|
|
|
|
return SerializedData;
|
|
}
|
|
|
|
protected string SerializedData;
|
|
}
|
|
}
|