一、gson變量定義註解json
@SerializedName("char") private String charm;//mongo轉化char
二、gson中json文件轉化成類spa
private Gson gson; List<Map<String, String>> dataList = gson.fromJson(text, new TypeToken<List<Map<String, String>>>() {}.getType());