Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:pretty not work with jq #51

Open
arkhan opened this issue Mar 16, 2021 · 1 comment
Open

:pretty not work with jq #51

arkhan opened this issue Mar 16, 2021 · 1 comment

Comments

@arkhan
Copy link

arkhan commented Mar 16, 2021

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 arkhan changed the title :pretty not work :pretty not work with jq Mar 16, 2021
@Kaligule
Copy link

Kaligule commented Jan 17, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants