title: Asp Core 3 Preview 4 - JSON camelcase
body: <p>Having migrated my ASP.Core API from 2.2 to 3.0, I'm finding some oddities with the way that DTO's are being returned when serialised using JSON.</p>
  
  <p>Originally, all my responses would come back as camelcase. Yet, everything now is set as PascalCase. </p>
  
  <p>I've tried settings the following and also DefaultPropertyNamesContractResolver.:</p>
  
  <pre><code>services.AddMvc()
          .AddNewtonsoftJson(options =&gt;
          {
               // Return JSON responses in LowerCase?
               options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
  
               // Resolve Looping navigation properties
               options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
          });
  </code></pre>
  
  <p>This is how the controller returns the object.</p>
  
  <pre><code>// GET: api/Projects
  [HttpGet]
  public async Task&lt;IEnumerable&lt;Project&gt;&gt; GetProjects()
  {
      return await _context.GetAll();
  }
  </code></pre>
  
  <p>It's odd, even Swagger reports the result should return in camelcase, but the JSON object is always capitalised in Pascal.</p>
  
  <p>Any ideas what I'm doing wrong?</p>