Advertisement
andmalv

[Tip] Mostrar JSON con formato adecuado

Mar 28th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. # Vamos a ver dos formas:
  2. #
  3. # 1. Utilizando python:
  4.  
  5.     echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool
  6.  
  7. # 2. Utilizando jq:
  8.  
  9.     echo '{ "foo": "lorem", "bar": "ipsum" }' | jq .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement