轉JsonObject:
Object region = JSONObject.parse(regions.toString());
轉對象:
BStationRegion stationRegion = JSONObject.parseObject(regions.toString(),BStationRegion.class);
轉list對象集合:
List<BStationRegion> stationRegionList = JSONObject.parseArray(regions.toString(),BStationRegion.class);
參考:https://blog.csdn.net/zhu_nana/article/details/91868249