Motivation: You want to print prettify JSON response after curl command request.
Solution: json_pp - commandline tool that converts between some input and output formats (one of them is JSON). This program was copied from json_xs and modified. The default input format is json and the default output format is json with pretty option.
Synposis: json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]]
Formula: <someCommand> | json_pp
Example:
Request
/* Request */ curl -X https://jsonplaceholder.typicode.com/todos/1 | json_pp /* Response */ Response
{ "completed" : false, "id" : 1, "title" : "delectus aut autem", "userId" : 1 }