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?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 5 septembre 2015 à 12h32
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.