Thursday, August 27, 2020

Pretty print json Format in BASH terminal

Pretty print json Format in BASH terminal

ex:

curl -X GET http://localhost:8001 | python3 -m json.tool


create alias in .bashrc :

alias pprint='python3 -m json.tool'


ex:

curl -X GET http://localhost:8001 | pprint


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout