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?
Nem találsz egy filmet vagy egy sorozatot? Jelentkezz be és hozd létre.
Want to rate or add this item to a list?
Még nem tag?
Travis Bell válaszolt
Beküldve: 2015. szeptember 5. 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.