How to read FormData into WebAPI
<p>I have an ASP.NET MVC WebApplication where I am using the ASP.NET Web API framework.</p>

<p><strong>Javascript code:</strong></p>

<pre><code>var data = new FormData();
data.append("filesToDelete", "Value");

$.ajax({    
    type: "POST",
    url: "/api/FileAttachment/UploadFiles?clientContactId=" + clientContactId,
    contentType: false,
    processData: false,
    data: data,
    success: function (result) {
        // Do something
    },
    error: function (xhr, status, p3, p4) {
        // Do something
    }
});
</code></pre>

<p><strong>C# code (WebAPI):</strong></p>

<pre><code>public void UploadFiles(int clientContactId) {
    if (!Request.Content.IsMimeMultipartContent()) {
        throw new HttpResponseException(HttpStatusCode.UnsupportedMediaType);
    }

    var jsonContent = Request.Content.ReadAsStringAsync().Result;
}
</code></pre>

<p>How do I read <code>jsonContent</code> based on a key value pair passed by the Javascript FormData? </p>

<p>I tried to do <code>JsonConvert.DeserializeObject&lt;?&gt;</code>, but it requires a particular type to deserialize into.</p>

<p>I want to get the value of the key <code>"filesToDelete"</code> passed from the Javascript FormData.</p>

<p>How can I get this value?</p>