This is my jQuery code
function ajaxCall(dataStream) {
$.ajax({
type: 'post',
url: 'be/email.php',
data: JSON.stringify(dataStream),
contentType: "application/json; charset=utf-8",
traditional: true,
success: function (data) {
}
});
The dataStream is { email: "da@gt.lo", skype: "dasd"}
.
Is this correct way of sending a json to PHP. I can see the json being sent in dev tools. But i cannot get them from my php.