title: SignalR Unexpected character encountered while parsing value: <
body: <p>I am using a WinRT client. I receive this exception when I try to send a message.</p>
  
  <p><em><strong>Unexpected character encountered while parsing value: &lt;.</em></strong></p>
  
  <p>The problem occurs when you send an object to the hub, and the object is not defined on the hub. The object is a Bindable object (ViewModel). I don't want to include all the property notify change stuff on the web project.</p>
  
  <p>Client Code</p>
  
  <pre><code>return Proxy.Invoke("PlayerUpdate", sessionData);
  </code></pre>
  
  <p>Try one was to have the hub accept an 'object' parameter</p>
  
  <pre><code>public async Task PlayerUpdate(string group, object sessionData)
  {
   await Clients[group].PlayerUpdate(sessionData);
  }
  </code></pre>
  
  <p>Try two was to have the hub accept an (json) 'string' parameter</p>
  
  <pre><code>public async Task PlayerUpdate(string group, string sessionData)
  {
   await Clients[group].PlayerUpdate(sessionData);
  }
  </code></pre>
  
  <p>Try three was to pre-serialize the object client side</p>
  
  <pre><code>var str = JsonConvert.SerializeObject(refresh);
  return Proxy.Invoke("PlayerUpdate", str);
  </code></pre>
  
  <p>Nothing is working. Plan 4 is to define some data transfer objects in a shared libarary to send. I really dont want to do that as It will about double my code.</p>