Aaron Ecay <aarone...@gmail.com> writes: > Have a look at the org-element library,
Just to add, there are circular dependencies in this data structure due to ":parent" and potentially some of the ":structure" elements. They obviously need to be broken to avoid infinite loops. Here my hackish attempt to deal with this in order to dump org-element to JSON: https://github.com/brettviren/joyful-web/blob/master/joy/org2json.el See org-json-straigten-tree for how I nullified these elements. -Brett.
Description: PGP signature