title: Post to azure function - Error parsing boolean value
body: <p>On my site I make a post request using a ajax call to an azure function url like so:</p>
  
  <pre><code>var name = $("input#name").val();
  var number = $(input#number").val();
  
  $.ajax({
      url: "azurefunctionurl.com",
      type: "POST",
      data: {
          name: name,
          number: number,
      },
      cache: false,
      success: function() {
          ...stuff here....
      },
      error: function () {
          ...stuff here...
      },
  }); 
  </code></pre>
  
  <p>However in the error logs I see a message that says</p>
  
  <blockquote>
    <p>One or more errors occurred. ---> Error parsing boolean value. Path '', line 1, position 1.</p>
  </blockquote>
  
  <p>My azure function code looks like</p>
  
  <pre><code>#r "Newtonsoft.Json"
  
  using System;
  using System.Net;
  using Newtonsoft.Json;
  
  public static async Task&lt;object&gt; Run(HttpRequestMessage req, TraceWriter log)
  {
      log.Verbose($"Webhook was triggered!");
  
      string jsonContent = await req.Content.ReadAsStringAsync();
      dynamic data = JsonConvert.DeserializeObject(jsonContent);
  
      string name = data.name;
      string number = data.number;
  
      log.Verbose(name);
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>