ob-http icon indicating copy to clipboard operation
ob-http copied to clipboard

:pretty not work with jq

Open arkhan opened this issue 3 years ago • 1 comments

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

image

this only happens when jq is installed Thaks

arkhan avatar Mar 16 '21 21:03 arkhan

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)

Kaligule avatar Jan 17 '22 06:01 Kaligule