📅  最后修改于: 2022-03-11 14:52:09.259000             🧑  作者: Mango
代码示例1
User user= gson.fromJson(jsonInString, User.class);
// where jsonInString is your json {"userId":"1","userName":"Yasir"}