jQuery getJson returning null
Posted
by Adam
on Stack Overflow
See other posts from Stack Overflow
or by Adam
Published on 2010-05-18T22:17:34Z
Indexed on
2010/05/18
22:20 UTC
Read the original article
Hit count: 781
I'm trying to use this api that lets you reference an exact text, but the getJson does not seem to be working, it's just returning null.
$.getJSON('http://api.biblia.com/v1/bible/content/KJV.json?key=MYAPIKEY=John+3:16-18&style=bibleTextOnly', function(data) { alert(data); });
I just took the key out, i've been testing it with my real api key, and it works fine when i just visit the url. is there anything else i need to do to make it work?
This is what you get from the url when you have an api key in the url:
{"text":"For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. For God sent not his Son into the world to condemn the world; but that the world through him might be saved. He that believeth on him is not condemned: but he that believeth not is condemned already, because he hath not believed in the name of the only begotten Son of God."}
© Stack Overflow or respective owner