如何将Java对象转换成json格式,如何将json格式数据转换成js对象_百度...答:JSONArray jsonArr= JSONArray.fromObject(list);System.out.println(jsonArr);输出:{"description":"descrsssss","id":2,"pointInfo":"pointkkkk","type":3} [{"description":"descrsssss","id":1,"pointInfo":"pointkkkk","type":3},{"description":"descrsssss","id":2,"pointInfo":...