Apparently after browsing through blogs for hours this is all you need to do / edit in the above example:
public string Post(tester test) {
string k = ";;";
return k;
}
add a class
public class tester {
public string user { get; set; }
public bool close { get; set; }
}
and change the AJAX to
var value = {close:true, user: "<%: uuid %>" };
$.ajax({
type: "POST",
contentType: "application/json;charset=utf-8",
url: "/api/TEST/",
data: JSON.stringify(value)
}).done(function(msg) {
alert("done"+msg);
});