You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
626 B
27 lines
626 B
1 year ago
|
#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
|