JSONValue.writeJSONString(ret, response.getWriter());
}
} catch (JsonException ex) {
JSONObject ret = new JSONObject();
ret.put("error", ex.getMessage());
ret.writeJSONString(response.getWriter());
} catch (Throwable t) {
logger.log(Level.SEVERE, "action " + actionName + " failed ", t);
}
Performance.timing("arago.portlet.dispatch.json", System.currentTimeMillis() - then);