我正在尝试打印一些数组格式的数据。但是在打印时,我正在丢失我需要的数组的初始字节。我怎么能得到它?
rray
(
[0] => stdClass Object
(
[company_category] => Company limited by Shares
[email_id] => example@domain.com
[last_processed] => 2016-07-01T08:42:34Z
[company_class] => Public
[country] =>
)
)
正如您将看到输出的开始应该是“数组”,但事实并非如此。我在这做错了什么。当我向特定URL发送请求并从中获取响应时。下面是我用来获得响应的代码
HttpEntity entity = CloseableHttpResponse.getEntity();
String response = EntityUtils.toString(entity,"UTF-8");
System.out.println(response);