adoc table > json conversion tool needed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

adoc table > json conversion tool needed

RickEEE
I've searched thru the forum for advice and a simple solution to convert adoc tables to json, without success. The closest I've found is that it would be a good idea to create an asciidoctor-json repository in a thread from 2016. Currently I'm using NotePad++ and am manually converting them.  I'm also looking at Pandoc filters, but don't see an existing filter. Perhaps it exists and I'm not seeing it?  Any help is appreciated. Thx!

Example adoc input:

|===
|Path|Type|Length|Description|Required

|payload
|string
|<varies>
|The payload in EDI format. For more information, refer to <<payload-examples-request>>.
|R

|===

Example json output:

[
  {
    "path": "payload",
    "type": "string",
    "length": "<varies>",
    "description": "The payload in EDI format. For more information, refer to <<payload-examples-request>>.",
   "required": "R"
  }
]