// Path: src/main/java/com/imadcn/framework/idworker/serialize/Serializer.java
// public interface Serializer {
// 
// }


import com.imadcn.framework.idworker.serialize.Serializer;
package com.imadcn.framework.idworker.serialize.json;


/**
 * json serializer
 * 
 * @author imadcn
 * @since 1.6.0
 */
public abstract class JsonSerializer<T> implements Serializer {

    /**
     * 默认时间装换格式：yyyy-MM-dd HH:mm:ss
     */
    public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * to json string
     * 
     * @param object 待转换对象
     * @return JSON 字符串
     * @throws Exception 系统异常
     */
// Path: src/main/java/com/imadcn/framework/idworker/serialize/Serializer.java
// public interface Serializer {
// 
// }


// Path: src/main/java/com/imadcn/framework/idworker/serialize/json/JsonSerializer.java
import com.imadcn.framework.idworker.serialize.Serializer;

package com.imadcn.framework.idworker.serialize.json;


/**
 * json serializer
 * 
 * @author imadcn
 * @since 1.6.0
 */
public abstract class JsonSerializer<T> implements Serializer {

    /**
     * 默认时间装换格式：yyyy-MM-dd HH:mm:ss
     */
    public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * to json string
     * 
     * @param object 待转换对象
     * @return JSON 字符串
     * @throws Exception 系统异常
     */
    public abstract String toJsonString(Object object) throws Exception;