getbible/Joomla-3-Component

Invalid JSON?

Closed this issue · 2 comments

The API's output JSON is between round brackets and therefore evaluated as invalid e.g. by YQL:

https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20json%20where%20url%3D%22https%3A%2F%2Fgetbible.net%2Fjson%3Fpassage%3D1Jn3%3A16%22&diagnostics=true

Are the brackets needed for some reason?

Best regards,
Vic

That is for jQuery, you can add &raw=true to get raw json.

Like this https://getbible.net/json?p=Psalms&raw=true

Thanks, that solved it!