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?
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 5 de septiembre de 2015 a las 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.