/*
 * Copyright (C) 2016-2020 ActionTech.
 * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
 */

package com.actiontech.dble.config.loader.zkprocess.parse;

/**
 * author:liujun
 * Created:2016/9/16
 */
public interface ParseJsonServiceInf<T> {

    /**
     * parseBeanToJson
     *
     * @param t
     * @return
     * @Created 2016/9/16
     */
    String parseBeanToJson(T t);

    /**
     * parseJsonToBean
     *
     * @param json
     * @return
     * @Created 2016/9/16
     */
    T parseJsonToBean(String json);

}
