if(jsonName == null){
final String message = "Required parameter 'jsonName' is not found.";
throw new RuntimeException(message);
}
ServletActionContext.getResponse().setContentType("text/javascript; charset=UTF-8");
JSON json = (JSON)actionInvocation.getStack().findValue(jsonName);
if(json != null){
Writer out = null;
try{
out = ServletActionContext.getResponse().getWriter();
out.append(json.toString());
}catch(Exception e){
logger.error("Error write json object: " + e.getMessage(), e);
}finally{
if(out != null){
out.close();