1. 程式人生 > >將List等集合轉換為Json

將List等集合轉換為Json

 JSON.toJSONString(List)

輸出結果: [{"code":"1","code_type":"special"},{"code":"2","code_type":"special""}, {"code":"3","code_type":"special","value":"銜接"}]