datas = {
domen: 'xxxx',
username: 'xxxx',
password: 'xxxx',
api: 'xxxxx',
}
$.ajax({
url: 'xxxxx',
type: 'POST',
dataType: 'JSON',
async: false,
data: {
result: JSON.stringify(datas)
},
success: function(response) {
console.log(response);
}
});