fun.fengwk.convention4j.example.gson.GsonHolderExample Maven / Gradle / Ivy
package fun.fengwk.convention4j.example.gson;
import com.google.gson.Gson;
import fun.fengwk.convention4j.common.json.gson.GsonHolder;
import fun.fengwk.convention4j.common.util.MapUtils;
/**
* @author fengwk
*/
public class GsonHolderExample {
public static void main(String[] args) {
Gson gson = GsonHolder.getInstance();
String json = gson.toJson(MapUtils.newMap("name", "fengwk"));
System.out.println(json);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy