title: How to serialize class type but not the namespace to a Json string using DataContractJsonSerializer
body: <p>I'm trying to serialize a class hierarchy to a Json string using <code>DataContractJsonSerializer</code>, in a WCF service.
  the default behaviour for serializing a derived class is to add the following key value pair to the object:</p>
  
  <p><code>"__type":"ClassName:#Namespace"</code></p>
  
  <p>My problem is that namespaces are long and they bloat the Json string.
  I would like to somehow intervene with the serialization and output this instead:</p>
  
  <p><code>"__type":"ClassName"</code></p>
  
  <p>and on deserialization intervene again to point to the correct namespace (which i know in runtime).</p>
  
  <p>Is there any way to do such a thing?</p>