[sword-devel] JSON Sword output
Greg Hellings
greg.hellings at gmail.com
Tue Jun 12 08:07:24 MST 2018
I have previously written a basic JSON interface to JSword just to prove to
people it could be done. I don't know if the code still lives anywhere, but
it's been done. It's extremely straightforward to do. It took me all of
about a day to get it running fine.
The same could be done in Sword if you wanted to just use the Python
bindings and use any of the very popular Python app frameworks. That's
probably the direction I would go if you really plan for this to be a
permanent and maintained thing. C++ on the web is something which really
should be reserved for the very most performance sensitive things.
Otherwise, avail yourself of the ease of binding C++ applications into
another language like Python or PHP and allow those languages and
frameworks to handle the web part of the traffic.
--Greg
On Tue, Jun 12, 2018 at 9:59 AM Daniel Bennett <danbenn at umich.edu> wrote:
> Hi everyone,
>
> So, I talked to Troy about making a JSON output option for C++ Sword.
>
> Any thoughts? Seen previous attempts? Is this a bad idea/impossible?
>
> Goal: make a private JSON rest api for a mobile app and website.
>
> That could also be run offline on a mobile app, with C++ bridging to
> native code.
>
> One option might be to make a filter.
>
> Best wishes,
>
> Dan
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180612/84f88566/attachment.html>
More information about the sword-devel
mailing list