title: Am I using DataContractJsonSerializer or the Json.net one in my web api 2
body: <p>after asking this <a href="https://stackoverflow.com/questions/20340045/custom-json-contractresolver-net-web-api-falling-back-to-camelcase-in-some-case">question</a> I was trying to get the grips of all of this serialization stuff in web api 2 and I read this
  <a href="http://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization" rel="nofollow noreferrer">http://www.asp.net/web-api/overview/formats-and-model-binding/json-and-xml-serialization</a></p>
  
  <p>But now I'm confused</p>
  
  <p>1 In my webapiconfig I don't have this lines</p>
  
  <pre><code>var json = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
  json.UseDataContractJsonSerializer = true;
  </code></pre>
  
  <p>So I asume I'm using the Json.net serializer which is the defaulted one. Anyway I still can use the DataContract in a class and therefore only the properties decorated with DataMember attribute will be serialized. Are these two assumptions correct?</p>
  
  <p>2 If I don't decorate a class with DataContract all of the properties will be serialized. This happen to both the Json.net and the DataContractJsonSerializer</p>
  
  <p>3 If I change (as in the question I linked) the resolver the serializer still uses it, is it because it's the Json.net one or one thing is not related to another? because if I use this in the Global</p>
  
  <pre><code>var json = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
  json.UseDataContractJsonSerializer = true;
  json.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
  </code></pre>
  
  <p>even if it doesn't raise any issue it doesn't seem to pick it up (nor using a custom contractresolver)</p>
  
  <p>3 In case I have a class that derives from another one and I decorate the parent one with DataContract it seems to me that I have to decorate the child one's properties with DataMember for serializing it. Or am I doing something wrong?</p>
  
  <p>Thanks</p>