Pretty print Curl JSON responses in terminal

Today I wanted to test one of my APIs and used curl to get the response in the terminal. The output wasn't clear at all because it usually returns everything in one line. Fortunately, there was a way to pretty-print the response, as in real json format. All you have...