super-chao

转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

 

分类:

技术点:

相关文章: