class Utils {

    public static String jsonOutput(Object data)
            throws JsonGenerationException, JsonMappingException, IOException {
        ObjectMapper mapper = new ObjectMapper();
        final ByteArrayOutputStream bos = new ByteArrayOutputStream();
        mapper.writeValue(bos, data);
        return bos.toString();
    }

    private  Utils();

}