123456789101112131415161718192021222324252627 |
- #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
|