title: How to pass value as string array to json key in ASP.NET Core Web API
body: <p>I want to pass the payload as <code>{ &quot;names&quot;: [ &quot;abc&quot;, &quot;xyz&quot; ]}</code> to my ASP.NET Core 6 Web API. I am trying like so:</p>
  <pre><code>public async Task&lt;ActionResult&lt;IEnumerable&lt;EmpDetails&gt;&gt;&gt; GetDetails([FromBody] string[] names)
  </code></pre>
  <p>I am getting only values not key name in payload.</p>