How to pretty-print response of a curl request of information?

When I execute curl host IP:9200/_nodes?filter_path=**.bootstrap, it returns with the following:
{"nodes":{"idI_aGgSRpuwcFXfQ2UrUA":{"settings":{"bootstrap":{"memory_lock":"true"}}}}}

How can I pretty-print it?

curl host IP:9200/_nodes?filter_path=**.bootstrap&pretty should do it.

It returns that bash: pretty: command not found...

curl host "IP:9200/_nodes?filter_path=**.bootstrap&pretty" - needs quotes.

yes! Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.