27 lines
626 B
C#
27 lines
626 B
C#
#if !BESTHTTP_DISABLE_SOCKETIO
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace BestHTTP.SocketIO.JsonEncoders
|
|
{
|
|
/*using Newtonsoft.Json;
|
|
|
|
/// <summary>
|
|
/// This class uses Newtonsoft's Json encoder (JSON .NET For Unity - http://u3d.as/5q2).
|
|
/// </summary>
|
|
public sealed class JsonDotNetEncoder : IJsonEncoder
|
|
{
|
|
public List<object> Decode(string json)
|
|
{
|
|
return JsonConvert.DeserializeObject<List<object>>(json);
|
|
}
|
|
|
|
public string Encode(List<object> obj)
|
|
{
|
|
return JsonConvert.SerializeObject(obj);
|
|
}
|
|
}*/
|
|
}
|
|
|
|
#endif |