Hi. I have problem with response in json format. Im requesting GET request https://api.themoviedb.org/3/movie/1900/credits?api_key=myapikey&callback=json But don't reciving response in json format. What's wrong with my request?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ سبتمبر 5, 2015 في 12:32 مساءا
Hi mikhailtpm,
By using the
callback
param, you're actually calling JSONP and what this is doing is wrapping your JSON in a JavaScript function. Regular JSON is returned by not specifying thecallback
param. I'm not sure which you're expecting, but it is working as designed (regular JSON):Vs. JSONP (callback=test):
Cheers.