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