title: How can I change Serialization approach (Typed,None) for some actions in Asp.Net Core?
body: <p>I have asp.net core 2.2 web Application. The application contains Command and Query Actions, Command Actions must return typed json response:</p>
  
  <pre><code>{
     $type:"A.B.Customer, x.dll ",
     id: 11231,
     name: "Erwin .."
  }
  </code></pre>
  
  <p>Query Actions must return non typed response:</p>
  
  <pre><code>{
    id: 34234,
    name: "Erwin .. "
  }
  </code></pre>
  
  <p>We can choose one outputformatter for Json responses at startup.</p>
  
  <pre><code> services.AddMvc().AddJsonOptions(o =&gt;
                  {
      SerializerSettings.TypeNameHandling=Newtonsoft.Json.TypeNameHandling.Objects
     // SerializerSettings.TypeNameHandling = Newtonsoft.Json.TypeNameHandling.None
  }
  </code></pre>
  
  <p>So How can I change output formatter for same response type (application/json) by action?</p>