How to Log HTTP Response

In the Agent I am doing a REST call and getting back a response body that is about 6K. How can I log or otherwise debug the entire response body?

What format is the body? JSON or just HTML?

In the current case it is JSON but could be HTML in another instance.