使用了最新的jfinal2.2,发现json输出有问题
代码如下:
json输出结果是:
[["2016-10-28 01:02:28","",1,"7167","8333","2016-10-01 00:00:00","1","1.17",2,"足利ホールディングス","常陽銀行","東証1部","東証1部","2016/9/28 - 2016/9/30","アシカガホールディングス","ジョウヨウギンコウ","トウショウ","トウショウ"],["2016-10-28 01:02:28","",1,"3050","9855","2016-12-01 00:00:00","1","0.6",2,"DCMホールディングス","くろがねや","東証1部","東証2部","2016/11/28 - 2016/11/30","ディーシーエムホールディングス","クロガネヤ","トウショウ","トウショウ"]]
没有属性名,直接返回了数组格式。是怎么回事?
项目:JFinal
截图中的 json 数据,最外层是数组,内层也是数组,如果希望生成的 json 有属性名,那么内部就不能是数组格式,而是 java bean 或者 map 都可以