title: How to map json response to the model with different field names
body: <p>I am using an ASP.NET Core 6 and System.Text.Json library.</p>
  <p>For example, I'm getting a response from the some API with the following structure</p>
  <pre><code>{
     &quot;items&quot;: 
     [
         {
            &quot;A&quot;: 1,
            &quot;User&quot;: 
            {
               &quot;Name&quot;: &quot;John&quot;,
               &quot;Age&quot;: 21,
               &quot;Adress&quot;: &quot;some str&quot;
            },
         },
         {
            &quot;A&quot;: 2,
            &quot;User&quot;: 
            {
               &quot;Name&quot;: &quot;Alex&quot;,
               &quot;Age&quot;: 22,
               &quot;Adress&quot;: &quot;some str2&quot;
            },
         }
     ]
  }
  </code></pre>
  <p>And I want to write this response to the model like <code>List&lt;SomeEntity&gt;</code>, where <code>SomeEntity</code> is</p>
  <pre><code>    public class SomeEntity
      {
          public int MyA { get; set; } // map to A
          public User MyUser { get; set; } // map to User
      }
  
      public class User
      {
          public string Name { get; set; }
          public string MyAge { get; set; } // map to Age
      }
  
  </code></pre>
  <p>How could I do it?</p>
  <p>UPDATE:</p>
  <p>Is it possible to map nested properties?</p>
  <pre><code>    public class SomeEntity
      {
          // should I add an attribute [JsonPropertyName(&quot;User:Name&quot;)] ?
          public string UserName{ get; set; } // map to User.Name
      }
  </code></pre>