if(UDF.RETURN_FORMAT_JSON==argumentsCollectionFormat) {
str = new JSONConverter(true).serialize(pc,args,false);
formfields.put("argumentCollectionFormat", "json");
}
else if(UDF.RETURN_FORMAT_SERIALIZE==argumentsCollectionFormat) {
str = new ScriptConverter().serialize(args);
formfields.put("argumentCollectionFormat", "cfml");
}
else {
str = new ScriptConverter().serialize(args); // Json interpreter in Railo also accepts cfscript
}
}
catch (ConverterException e) {
throw Caster.toPageException(e);
}