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 <danb...@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@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to