Function: org-babel-js-read
org-babel-js-read is a byte-compiled function defined in ob-js.el.gz.
Signature
(org-babel-js-read RESULTS)
Documentation
Convert RESULTS into an appropriate elisp value.
If RESULTS look like a table, then convert them into an Emacs-lisp table, otherwise return the results as a string.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-js.el.gz
(defun org-babel-js-read (results)
"Convert RESULTS into an appropriate elisp value.
If RESULTS look like a table, then convert them into an
Emacs-lisp table, otherwise return the results as a string."
(org-babel-read
(if (and (stringp results)
(string-prefix-p "[" results)
(string-suffix-p "]" results))
(org-babel-read
(concat "'"
(replace-regexp-in-string
"\\[" "(" (replace-regexp-in-string
"\\]" ")" (replace-regexp-in-string
",[[:space:]]" " "
(replace-regexp-in-string
"'" "\"" results))))))
results)))