ob-http
ob-http copied to clipboard
:pretty not work with jq
Greetings, I am trying to format the json output of a code block, but it is not working as it is passing me unexpected characters, as you can see in the attached image
this only happens when jq is installed Thaks
I can't reproduce this problem. It is more difficult because your example is local to you.
Could you try again with this code?
#+BEGIN_SRC http :pretty :wrap src json
GET https://api.github.com/repos/zweifisch/ob-http/languages
#+END_SRC
The result should be:
#+RESULTS:
#+begin_src json
{
"Emacs Lisp": 15327,
"Shell": 139
}
#+end_src
the only thing I can think of based on the screenshot is that the first "json" in the source header is not necessary. (but it doesn't break anything for me, either)