json pretty print: JSON을 이쁘게 출력 :: 행복한 프로그래머

posted by 쁘로그램어 2018. 5. 16. 18:37

curl 명령을 사용해서 json을 출력할때 이쁘게? 표시할수 있다.

자세한 내용은 아래 참고사이트를 참고하자.


# 방법1

$ curl http://localhost:11608/api/v1.0/containers | python -m json.tool


# 방법2

$ curl http://localhost:11608/api/v1.0/containers | jq ''


※ 참고 사이트 ※

https://stackoverflow.com/questions/12943819/how-to-prettyprint-a-json-file