dabocaiqq
2018-05-28 10:31
采纳率: 69.2%
浏览 1.4k
已采纳

请问jsonobject转换后数据怎么只有一条了,是list格式的问题吗???

public Object upLoadSettlement(String list) {
JSONObject j = JSONObject.fromObject(list);
System.out.println("我是list"+list);
System.out.println("我是jsonobject转换后的list"+j);
}

输出后
我是list{"YYBH":"400750","JYCKH":"POSJYCKH900000019","POSJYSJ":"20170920082242","SFZHM":"1954651565112","JYLX":"消费","POSJYJE":"5.00","SHH":"306441959121133","ZDBH":"51904698","BHCFYBZ":"1","BZ1":"备注1","BZ2":"备注2","BZ3":"备注3"},{"YYBH":"400750","JYCKH":"XLSYR10HC900000020","POSJYSJ":"20170920085125","SFZHM":"","JYLX":"消费","POSJYJE":"195.50","SHH":"306441959121133","ZDBH":"51904698","BHCFYBZ":"0","BZ1":"备注1","BZ2":"备注2","BZ3":"备注3"}

我是jsonobject转换后的list{"YYBH":"400750","JYCKH":"POSJYCKH900000019","POSJYSJ":"20170920082242","SFZHM":"1954651565112","JYLX":"消费","POSJYJE":"5.00","SHH":"306441959121133","ZDBH":"51904698","BHCFYBZ":"1","BZ1":"备注1","BZ2":"备注2","BZ3":"备注3"}

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

3条回答 默认 最新

相关推荐 更多相似问题