jsonP prefix

62 views
Skip to first unread message

paxRoman

unread,
May 18, 2012, 7:35:49 AM5/18/12
to world-b...@googlegroups.com
Hello!

According to: http://data.worldbank.org/node/11 we need to use this to get jsonP data back:

http://api.worldbank.org/countries/br/indicators/SP.POP.TOTL??date=2000:2001&format=jsonP&prefix=Getdata
"Note: For JsonP format, 'prefix' parameter needs to be specified. "

There is however no description of what that prefix means and how to use it. Can anybody post an example which contains these prefixes?
I can see the json but it always throws an error related to that prefix...and I don't know to set it.

Best regards!

mrat...@worldbank.org

unread,
Feb 19, 2013, 5:02:38 PM2/19/13
to world-b...@googlegroups.com
Hi,
For JsonP calls this prefix value has to be mentioned, It could be any value.
But whatever you provide as value of prefix, would appear as a first word of response.
like if  prefix=Getdata  your outcome of call would contain 'Getdata' as first word.

Please revert if further detail required.

Thanks
Reply all
Reply to author
Forward
0 new messages