Here is my external api call in angular js
$http.post('http://api.quickblox.com/users.json', {
token: quickbloxapitoken,
user: {
email: email,
login: firstname,
password: password
}
}, {
'Content-Type': 'application/x-www-form-urlencoded'
})
.then(function(results) {
var apiid = results.data.user.id;
}
Here my data is sent to two json arrays, e.g.

And when I try to do the same in jquery, I have my call like this
$.ajax({
url: 'http://api.quickblox.com/users.json',
type : 'POST',
data: { token: quickbloxapitoken, login: fbname, password: 'fbuserfbuser', email: fbmail},
success: function(message)
{
console.log(message);
}
})
Data was sent this way

How can I make my jquery data sent as angularjs?
I mean like that?

user4989228
source
share