that sounds like an interesting approach. xml seems like what you really want, since looking at the parsetree there is a lot of information (e.g. attributes, properties, etc...) that would be tricky to generate a fully representative json scheme.
This page suggests at the bottom you could export to texinfo, and convert that to docbook:
http://orgmode.org/worg/exporters/ox-overview.html
- (1) DocBook export, available in previous Org-mode versions, has not currently been ported
to the new exporter, however the new
ox-texinfo
backend can generate DocBook
format. Once file.texi
is created via ox-texinfo
, simply execute:
makeinfo --docbook file.texi