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

fun.fengwk.convention4j.example.gson.GsonHolderExample Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
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