#if !BESTHTTP_DISABLE_SIGNALR
using System.Collections.Generic;
namespace BestHTTP.SignalR.JsonEncoders
{
///
/// Interface to be able to write custom Json encoders/decoders.
///
public interface IJsonEncoder
{
///
/// This function must create a json formatted string from the given object. If the encoding fails, it should return null.
///
string Encode(object obj);
///
/// This function must create a dictionary the Json formatted string parameter. If the decoding fails, it should return null.
///
IDictionary DecodeMessage(string json);
}
}
#endif