Use the XMLHttpRequest to get the content of a file.

The content is written in JSON format, and can easily be converted into a JavaScript object.

Take a look at json_demo.txt

top of page
Repent.png

THE BIBLE AND REPENTANCE

But God’s firm foundation stands, bearing this seal: “The Lord knows those who are his,” and, “Let everyone who names the name of the Lord depart from iniquity.” - 2 Timothy 2:19 (ESV)

What does the Bible say?: Reviews
Believe.png

THE BIBLE AND BELIEF

“For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life. For God did not send his Son into the world to condemn the world, but in order that the world might be saved through him. Whoever believes in him is not condemned, but whoever does not believe is condemned already, because he has not believed in the name of the only Son of God. - John 3:16–18 (ESV)

What does the Bible say?: Reviews
Receive.png

THE BIBLE AND ETERNAL LIFE

"For by grace you have been saved through faith. And this is not your own doing; it is the gift of God, not a result of works, so that no one may boast." - Ephesians 2:8-9 (ESV)

What does the Bible say?: Reviews
bottom of page