var data = {};
data.id = TchekID;
data.RoiIsCreated = true;
data.x = ROI.x;
data.y = ROI.y;
data.width = ROI.width;
data.height = ROI.height;
var url = 'http://localhost:8080/tcheks/inspecteur/' + TchekID;
console.log(data);
$.ajax({
type: 'POST',
data: JSON.stringify(data),
contentType: 'application/json',
url: url,
success: function(data) {
console.log('success');
}
});