What I would like to do is pretty print the body if it’s JSON or XML so that it’s easier to read. There are some tools out there, like jq which will format JSON, but they can’t seem to cope if the first part of the string is not JSON: To make this easier, you can add to your ~/.curlrc.

View original article

Pin It on Pinterest

Share This