com.codingapi.springboot.framework.serializable.JsonSerializable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter Show documentation
Show all versions of springboot-starter Show documentation
springboot-starter project for Spring Boot
The newest version!
package com.codingapi.springboot.framework.serializable;
import com.alibaba.fastjson.JSONObject;
import java.io.Serializable;
public interface JsonSerializable extends Serializable {
default String toJson() {
return JSONObject.toJSONString(this);
}
}