Structure:
{"CHits":[true,false],"MHits":[true,false]}
Example:
var postObject = new Object(); // Initialize CHits and MHits as arrays postObject.CHits = []; postObject.MHits = []; // push some items into the arrays postObject.CHits.push(true); postObject.CHits.push(false); postObject.MHits.push(true); postObject.MHits.push(false); // serialize data to post // this is what you set as data property in for instance jquery ajax $.ajax({ //other params, content type etc type: 'POST', data: JSON.stringify(postObject), ... });
if your parameter is null, you should try to add the [FromBody] attribute and decorate the method with httppost
[HttpPost] public void Post([FromBody]Record record) { }