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?
Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.
Deseja classificar ou adicionar este item a uma lista?
Ainda não é um membro?
Resposta de Travis Bell
em 5 setembro 2015 às 12:32 PM
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.