#if !BESTHTTP_DISABLE_SIGNALR using BestHTTP.JSON; using System.Collections.Generic; namespace BestHTTP.SignalR.JsonEncoders { public sealed class DefaultJsonEncoder : IJsonEncoder { public string Encode(object obj) { return Json.Encode(obj); } public IDictionary DecodeMessage(string json) { bool ok = false; IDictionary result = Json.Decode(json, ref ok) as IDictionary; return ok ? result : null; } } } #endif