JSON数据格式是怎样的?

{"wegInstLt":[{"billTypeCode":"0","channelId":530,"channelKind":"03","isHaveBillDate":"0","isHavePayAmount":"0","isLeePay":"0","isPrePay":"1","wiliCode":"1238","wiliItem":"00","wiliName":"哈尔滨市自来水公司","wltiId":10345}]},求解答。

慕神8447489
浏览 285回答 3
3回答

千万里不及你

这样告诉你吧 PHP呢 json_decode('',true) 就可以得到这样的数组:Array([wegInstLt] => Array([0] => Array([billTypeCode] => 0[channelId] => 530[channelKind] => 03[isHaveBillDate] => 0[isHavePayAmount] => 0[isLeePay] => 0[isPrePay] => 1[wiliCode] => 1238[wiliItem] => 00[wiliName] => 哈尔滨市自来水公司[wltiId] => 10345)))按照你说的list 我觉得你是说python语言的list么。在python里面 是 html = json.loads(html,encoding='utf-8')成 a Python object
打开App,查看更多内容
随时随地看视频慕课网APP