title: Passing a string array from JS to C# controller
body: <p>I have an array in JS ( <code>var selectedEmails = [];</code> )
  After I collect the selected Emails from a grid, I call a GET to C# controller:</p>
  <pre><code> $.ajax({
              type: 'GET',
              url: '@Url.Action(&quot;SendEmailBatchs&quot;, &quot;account&quot;)',
              data: { emails: selectedEmails },
              contentType: 'application/json',
              success: (data) =&gt; {
                  console.log(&quot;data&quot;, data);
              }
          })
  
  </code></pre>
  <p>When called, the parameter in C# gets no data. I've checked in JS, and the emails are in the array. Using breakpoints, I've confirmed the Controller's method is getting called:</p>
  <p>Controller:</p>
  <pre><code>[HttpGet(&quot;sendemailbatchs&quot;)]
   public async Task&lt;ActionResult&gt; SendEmailBatchs(string[] emails)
          {
              ...
              foreach (ApplicationUser user in users)
              {
                  await SendEmailConfirmation(user);
              }
              return Ok;
          }
  </code></pre>
  <p>Changing the data to <code>data: { emails: JSON.stringify(selectedEmails) },</code> will pass an array with 1 element only, containing a stringified list of emails <code>&quot;[\&quot;loes.vea@phanc.com\&quot;,\&quot;MaAlonso.Mfizer.com\&quot;,\&quot;cech@mll-int.cm\&quot;,\&quot;jier.aris@si.com\&quot;]&quot;</code></p>
  <p>What would be the correct parameter from JS so that I get a string ARRAY where each email is an element of the array?</p>
  <pre><code>emails = [0]: &quot;loes.vea@phanc.com\&quot;,
  [1]: \&quot;MaAlonso.Mfizer.com\&quot;, ...
  </code></pre>