培训考核三期,新版培训,网页版培训登录器
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.
 
 

25 lines
606 B

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