Hmm, it works for emacs-lisp, however I specifically wanted to use it with
ob-sql, and can't find a way.

On Wed, Mar 28, 2018 at 2:05 PM John Kitchin <jkitc...@andrew.cmu.edu>
wrote:

> Does this do what you want:
>
> #+BEGIN_SRC emacs-lisp :wrap json
> (json-encode '((type . "text")))
> #+END_SRC
>
> #+RESULTS:
> #+BEGIN_json
> {"type":"text"}
> #+END_json
>
> John
>
> -----------------------------------
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 <(412)%20268-7803>
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>
> On Wed, Mar 28, 2018 at 1:42 PM, Ag Ibragimov <agzam.ibragi...@gmail.com>
> wrote:
>
>>
>> Sorry, I don't know the best medium to convey ideas and I'm afraid not
>> qualified (familiar with org-mode codebase) to submit a PR for this.
>> I wonder how difficult would be to
>> add the possibility to have babel src block results to be rendered as
>> json?
>> Basically a new result type
>> https://orgmode.org/manual/results.html#results
>>
>> Thank you.
>>
>>
>

Reply via email to