📅  最后修改于: 2022-03-11 14:48:32.279000             🧑  作者: Mango
代码示例6
Gson gson = new Gson();
JsonElement jsonElement = gson.toJsonTree(map);
MyPojo pojo = gson.fromJson(jsonElement, MyPojo.class);