String数组转换成JSON

               

String数组转换成JSON

String[] arr_String  = {
   "a","b","c"}; System.out.println(arr_String);//输出[Ljava.lang.String;@5ca0b138String json_arr_String = JSON.toJSONString(arr_String); System.out.println(json_arr_String); //输出["a","b","c"]

来自:http://www.cnblogs.com/DreamDrive/p/5778959.html

           ,               

String数组转换成JSON

String[] arr_String  = {
  "a","b","c"}; System.out.println(arr_String);//输出[Ljava.lang.String;@5ca0b138String json_arr_String = JSON.toJSONString(arr_String); System.out.println(json_arr_String); //输出["a","b","c"]

来自:http://www.cnblogs.com/DreamDrive/p/5778959.html

           

    原文作者:qq_44945094
    原文地址: https://blog.csdn.net/qq_44945094/article/details/89420980
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞