title: Json.Net - Error getting value from 'ScopeId' on 'System.Net.IPAddress'
body: <p>I am trying to serialize an IPEndpoint object with Json.Net and I get the following error:</p>
  
  <p>Error getting value from 'ScopeId' on 'System.Net.IPAddress'.</p>
  
  <p>The cause of the error is that I am only using the IPV4 properties of the IPAddress object in the endpoint. When the Json parser tries to parse the IPv6 portion, it accesses the ScopeID property which throws a socket exception "The attempted operation is not supported for the type of object referenced" (A null would have sufficed microsoft!)</p>
  
  <p>I was wondering if there may be a workaround for this other than ripping everything apart and coding the address information as a string? At some point I do want to support IPV6. Is there anything that can be done in Json.NET to ignore the error or simply NOT attempt to serialize the ScopeID if the IPAddress family is set to Internetwork instead of InternetworkIPV6?</p>
  
  <p>Thanks,</p>
  
  <p>Dinsdale</p>