class JsonUtils {

    public static <T> List<T> jsonToList(String json,Class<T> clazz) {
    	List<T> list =null;
    	if(!Strings.isNullOrEmpty(json)){
    		T[] t =  (T[]) Array.newInstance(clazz, 1024);
            try {
                t =  (T[]) getInstance().readValue(json, t.getClass());
                list= Arrays.asList(t);
            } catch (JsonGenerationException e) {
                logger.error(e.getMessage(),e);
            } catch (JsonMappingException e) {
                logger.error(e.getMessage(),e);
            } catch (IOException e) {
                logger.error(e.getMessage(),e);
            }
    	}
        return list;
    }

    private  JsonUtils();

}