All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.easyopen.serializer.JsonResultSerializer Maven / Gradle / Ivy

package com.gitee.easyopen.serializer;

import com.gitee.easyopen.ResultSerializer;
import com.gitee.easyopen.util.json.JsonUtil;

/**
 * 序列化json
 * @author tanghc
 */
public class JsonResultSerializer implements ResultSerializer {

    @Override
    public String serialize(Object obj) {
        return JsonUtil.toJSONString(obj);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy