How to deal with ajax + json?

Hi all... a 2 hour fight in hysterics from JSON and AJAX. I have to say, I'm working with JS using the instructions...
The essence, cause when you click the ajax and send the request out, and in the answer silence...
JS:
$.ajax({
 url: '/module/goods/ajax/group_delete.php', 
 data: {delID: getParams},
 contentType: "application/json; charset=utf-8",
 dataType : "jsonp",
 success: function (data) {
console.log(data);
}
 });

The page returns a JSON encoded:
[{"id":"1","name":"\u0420\u043e\u043b\u043b \u0424\u0438\u043b\u043a\u0430","group_id":"1","unit":"\u0433\u0440.","price":"259","photo":"","sostav":"\u0427\u0442\u043e \u0442\u043e \u0441 \u0447\u0435\u043c\u0442\u043e","onVK":"1","showSite":"1","showOMS":"1","changePrice":"1","watermark":"1","addtime":"","addadmin":""}]

In response to the silence... No errors, just silence... Asking for help of the specialists (((
June 14th 19 at 18:09
1 answer
June 14th 19 at 18:11
1. You didn't specify what type of request is get, post or another (on account of I don't know if you can use others).
2.
The essence, cause when you click the ajax and send the request out, and in the answer silence...

At the same time gives the answer:
[{"id":"1","name":"\u0420\u043e\u043b\u043b \u0424\u0438\u043b\u043a\u0430","group_id":"1","unit":"\u0433\u0440.","price":"259","photo":"","sostav":"\u0427\u0442\u043e \u0442\u043e \u0441 \u0447\u0435\u043c\u0442\u043e","onVK":"1","showSite":"1","showOMS":"1","changePrice":"1","watermark":"1","addtime":"","addadmin":""}]
I agree not quite right wrote, if you go to the page from the browser is on the screen. But with ajax the silence. - Vernon.Schu commented on June 14th 19 at 18:14
And Yes, by default, sends GET. The query that goes in the console I see it - Vernon.Schu commented on June 14th 19 at 18:17
perhaps something you doing wrong in your php code. - Jamaal_Bode commented on June 14th 19 at 18:20

Find more questions by tags AJAXJavaScriptjQueryJSON