$foo()['bar']()->baz
.$.ajax({
url: 'http://127.0.0.1:8080/login',
type: 'POST',
data: JSON.stringify({
username : 'rob6',
password : '9292271A'
}),
beforeSend: function (xhr) {
xhr.setRequestHeader("Content-Type", 'application/json;charset=UTF-8');
},
dataType: 'json',
success: function(response){
console.log(response)
},
error: function(response){
console.log(response)
}
});