为什么我的LOG.error会打印我的数组? Liferay的

时间:2016-08-26 22:43:51

标签: java json ajax liferay

为什么我的log.error会打印我的JSON数组?

这是我的代码:

if(strResourceId.equalsIgnoreCase("transactionTypes")){         
    long transactionID = ParamUtil.getLong(resourceRequest, "paramTran");
    TransactionTypeFacade transTypeFacade = TransactionTypeFacade.getInstance();
    JSONArray transTypes = transTypeFacade.findTransTypes_By_TransId(transactionID);
    LOG.error(transTypes);
    objWriteJSON.writeJsonToResponse(resourceResponse, transTypes.toString());
}

我的控制台输出:

22:28:25,674 ERROR 
[http-bio-8080-exec-113]
[IncidentsPortlet:276] 
[{"id":6,"name":"Cambio de Equipo"},{"id":5,"name":"Cambio de Plan"},
{"id":3,"name":"Cortes por Robo"},
{"id":9,"name":"Otros"},
{"id":2,"name":"Recargas Viirtuales"},
{"id":7,"name":"Reclamaciones"},
{"id":1,"name":"Supercargas"},
{"id":8,"name":"Superchip"},
{"id":4,"name":"Venta Prepago"}]

0 个答案:

没有答案