摘要:
Google Gson 使用简介转载Google Gson 使用简介如何将数组转化为 json 串?下面的例子中我们示例如何将一个数据转换成 json 串,并使用Gson.toJson()方法将数组序列化为 JSON,以及Gson.fromJson()方法将 JSON 串反序列化为 java 数组。import com.google.gson.Gson;public class ArrayToJson { public static void main(String[] args) { int[] numbers = {1, 1, 2, 3, 5, 8, 13}; ... 阅读全文
摘要:
在博客园安家了,纪念一下!记录成长的轨迹!!2013-7-26 8:53:57 阅读全文