title: .net 6 migration JsonElement to dynamic
body: <p>I come from .net core 2.1 and after migration to .net 6 i got different behavior.</p>
  <p>I have json in my RabbitMQ.
  After cunsume new message i deserialize to class with field <code>List&lt;dynamic&gt;</code></p>
  <pre><code>class msg{
     public string Name {get;set;}
     public int Old {get;set;}
     ... other fiedls 
     public List&lt;dynamic&gt; list {get;set;}
  }
  </code></pre>
  <p>Working code from 2.1 now throw error</p>
  <pre><code>    foreach (var i in msg.list)
      {
          switch ((VariantEnum)i.variant)
  </code></pre>
  <p>In debug i found that now &quot;var i&quot; is typeof JsonElement</p>
  <p>How i can in .net 6 use dynamic like before ?</p>