We convert dita to json so that a ditamap structure can feed a python app. It’s a lot like creating a text output.
toggle quoted messageShow quoted text
What’s your json data structure?
Sent from mobile
On Feb 24, 2020, at 12:15 PM, "firstname.lastname@example.org" <email@example.com> wrote:
Note that XSLT 3 (supported by recent Saxon versions, so including latest OT 2.x and 3.x versions) has features for reading and writing JSON, so if you know what the JSON should look like it shouldn't be too hard to generate it. There's also a generic JSON serialization option but it's unlikely it would provide satisfactory results due to the inherent difficulty in mapping from XML to JSON.
I think the larger challenge is probably knowing what the JSON should look like--that's going to be very specific to the consumer of the JSON.
On 2/24/20, 11:43 AM, "firstname.lastname@example.org on behalf of email@example.com" <firstname.lastname@example.org on behalf of email@example.com> wrote:
Is anyone converting DITA to JSON format? I've seen OT plugins to convert JSON to DITA topics, and Oxygen (and other) single-file converters for JSON to DITA. But I'm curious if there is either a bulk conversion tool available (for DITA->JSON) or a toolkit plugin to convert a map's worth of topics.