把List对象或者单值对象转换为Json格式

new Gson().toJson(对象)
原文地址:https://www.cnblogs.com/YangBinChina/p/8435252.html