title: Disable JSON.Net PreserveReferencesHandling for single external type
body: <p>I'm having the issue where the $id and $ref properties in the generated JSON are not accepted by the external resource. But as we need this internally I can't just disable PreserveReferencesHandling globally. </p>
  
  <p>How can I disable this just for a single type? I've seen the <code>[JsonObject]</code> attribute but as this class is from an external source I can't add the attribute to it...
  I looked into the IContractResolver but couldn't figure out how to disable the reference handling there.</p>
  
  <p>Thanks!</p>
  
  <ul>
  <li>JSON.Net v10.0.2</li>
  </ul>