#if !BESTHTTP_DISABLE_SOCKETIO using System.Collections.Generic; using BestHTTP.JSON; namespace BestHTTP.SocketIO.JsonEncoders { /// /// The default IJsonEncoder implementation. It's uses the Json class from the BestHTTP.JSON namespace to encode and decode. /// public sealed class DefaultJSonEncoder : IJsonEncoder { public List Decode(string json) { return Json.Decode(json) as List; } public string Encode(List obj) { return Json.Encode(obj); } } } #endif