how to return a passage as json response

Page 1 of 1 (4 items)
This post has 3 Replies | 1 Follower

Posts 4
chris mathew | Forum Activity | Posted: Thu, Sep 30 2010 1:33 PM

I wanted to return a passage as a json string. I am the using the query like the below string, hidden the actual key

http://api.biblia.com/v1/bible/content/LEB.html?passage=John3:16&key=xxxxxx. I wanted to return instead of html format, in json format. how can we do it, I am planning to use the api in a mobile app.

Posts 408
LogosEmployee
Bryan Smith | Forum Activity | Replied: Thu, Sep 30 2010 1:38 PM

Do you want the JSON object to contain a string of plain text or a string of html? Use either .html.json or .txt.json for the extension.

Posts 4
chris mathew | Forum Activity | Replied: Fri, Oct 1 2010 6:33 AM

ok. thanks. If I say like the query below, it brings the whole chapter as one string but the verses number is not there, it would be nice if the verses number where also included in the return string, as it brings back as one jason string object.

http://api.biblia.com/v1/bible/content/LEB.txt.json?passage=John3&key=xxx,

Posts 408
LogosEmployee
Bryan Smith | Forum Activity | Replied: Fri, Oct 1 2010 8:08 AM

The documentation has detailed instructions on how to change the format of the content.

http://api.biblia.com/docs/Bible_Content

Page 1 of 1 (4 items) | RSS