Pretty print JSON response if we're in debug