I am running redis client (redis-cli) on Windows 7 command prompt. I am storing data in my redis cache through my Spring Boot Java application in JSON serialized form. When I print data using GET <key>
, the output is not pretty printed, as in the picture below:
Is there a way I can pretty print JSON in the command line?
redis-cli get userById::195 | jq .
– Smallsword