When posting to my API using CURL the syntax I'm using is:
curl -H "Content-Type:application/json" -X POST -d '{"domainName":"fabrikam.onmicrosoft.com","apiKey":"980709a87df09a78dsf90a8s7f"}' http://localhost:7071/api/getnodedata
My web API receives the request via:
dynamic data = await req.Content.ReadAsAsync<object>();
NodeModel nodeData = Newtonsoft.Json.JsonConvert.DeserializeObject<NodeModel>(data);
My class is simple:
public class NodeModel : TableEntity
{
    public string DomainName { get; set; }
    public string ApiKey { get; set; }
}
public static NodeModel(string DomainName, string ApiKey)
{
    this.PartitionKey = DomainName;
    this.RowKey = ApiKey;
}
Inspecting data gives me '{domainName:fabrikam.onmicrosoft.com,apiKey:980709a87df09a78dsf90a8s7f}' which looks okay except for the missing double quotes around each key/value pair. CURL is removing the double-quotes before sending it (as verified using Fiddler trace).
I get an exception in my func.exe local application as follows:
mscorlib: Exception while executing function: GetNodeData. Newtonsoft.Json: Error parsing boolean value. Path 'domainName'
I've tried:
- Spaces between the key/values
- Single quotes wrapping the keys(s)
- Single quotes wrapping the value(s)
- Researching Newtonsoft website for correct syntax
- Researching this site for other examples (which don't seem to be any different from what I'm doing).
Any suggestions or instructions for using another tool? I have Fiddler too but haven't used it for POSTing data to a service.

datashows the missing inside quotes but outside double-quotes. Odd!--proxy http://localhost:8888and see if it now goes through Fiddler.-d "{\"domainName\": \"fabrikam.onmicrosoft.com\", \"apiKey\": \"980709a87df09a78dsf90a8s7f\"}"