title: .Net5 Core API: In Post action, Dictionary object is not received in [FromForm] but received in [FromBody]
body: <p>I have two actions</p>
  <pre><code>        [HttpPost(&quot;MyFromForm&quot;)]
          public async Task&lt;IActionResult&gt; MyFromForm([FromForm] RequestExample request)
          {
              return new OkObjectResult(request);
          }
  
          [HttpPost(&quot;MyFromBody&quot;)]
          public async Task&lt;IActionResult&gt; MyFromBody([FromBody] RequestExample request)
          {
              return new OkObjectResult(request);
          }
  </code></pre>
  <p>The class contains only one property of Dictionary type</p>
  <pre><code>    public class RequestExample
      {
          public Dictionary&lt;string, string&gt; DeviceDetails { get; set; }
      }
  </code></pre>
  <p><strong>Request</strong>
  <a href="https://i.stack.imgur.com/z32ki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z32ki.png" alt="enter image description here" /></a></p>
  <pre><code>{
    &quot;deviceDetails&quot;: {
      &quot;additionalProp1&quot;: &quot;string&quot;,
      &quot;additionalProp2&quot;: &quot;string&quot;,
      &quot;additionalProp3&quot;: &quot;string&quot;
    }
  }
  </code></pre>
  <p>In case I send the data using swagger to these methods, The method having FromBody is working but the method having FromForm is not working.</p>
  <p><em>Using: FromBody</em>, I am able to receive the dictionary in the request
  <a href="https://i.stack.imgur.com/f6yu0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f6yu0.png" alt="enter image description here" /></a></p>
  <p><em>Using: FromForm</em>, I am <strong>not</strong> able to receive the dictionary in the request
  <a href="https://i.stack.imgur.com/IWIkh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IWIkh.png" alt="enter image description here" /></a></p>
  <p><strong>Question:</strong> Why I am not able to receive the object in FromForm type of request?</p>