The function (org-babel-expand-noweb-references info)
returns the noweb-expanded string for the source block info
. The structure of the source block info is described in the help of org-babel-get-src-block-info
.
The only thing we need from the info
for expanding of the noweb-references is (language body)
:
#+BEGIN_SRC emacs-lisp
(let* ((json-string (org-babel-expand-noweb-references '(emacs-lisp "<<gazonk>>"))))
json-string)
#+END_SRC
#+RESULTS:
: {
: "GivenName" : "Mortimer",
: "SurName" : "Smith",
: "NameSuffixText" : "Sr",
: "PreferredName" : "Morty",
: }
Disclaimer: This is certainly not the intended use of org-babel-expand-noweb-references
. So be aware of potential changes in the API.
Maybe, you can ask the people from Orgmodethe people from Orgmode whether this behavior could be held stable or how to tackle your problem differently.