title: How to set Json Serializer Settings in SignalR2?
body: <p>I am using Signalr 2, Webapi 2 and Ninject for Ioc and I am in trouble.</p>
  
  <p>In SignalR 2.0 you can't replace the JsonSerializer.
  As been answered in here: 
  <a href="https://stackoverflow.com/questions/18077200/signalr-2-0-0-beta2-ijsonserializer-extensibility">SignalR 2.0.0 beta2 IJsonSerializer extensibility</a></p>
  
  <p>I need to ignore ReferenceLoopHandling in json, so I used this code:</p>
  
  <pre><code>var serializerSettings = new JsonSerializerSettings
          {
              ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
              NullValueHandling = NullValueHandling.Ignore
          };
          GlobalHost.DependencyResolver.Register(typeof(JsonSerializer), () =&gt; JsonSerializer.Create(serializerSettings));
  </code></pre>
  
  <p>It all works fine, but I also call signalR clients from Webapi and calling will not work unless I set this code in app start:</p>
  
  <pre><code>GlobalHost.DependencyResolver = new NinjectSignalRDependencyResolver(NinjectIocConfig.Kernel);
  </code></pre>
  
  <p>Calling signalR clients from webapi now works but the JSON serialization settings are not used anymore.</p>
  
  <p>How I can get around this or what am I doing wrong? </p>
  
  <p>Thanks in advance </p>