How to pretty print json string from the output of Redis Client on command prompt on Windows 7?
Asked Answered
S

0

8

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:

enter image description here

Is there a way I can pretty print JSON in the command line?

Snapdragon answered 29/6, 2020 at 14:35 Comment(1)
Try redis-cli get userById::195 | jq .Smallsword

© 2022 - 2024 — McMap. All rights reserved.