Json实际项目中应用

来源:互联网 发布:女朋友生气的原因 知乎 编辑:程序博客网 时间:2024/05/21 21:02

对象列表(2个对象)
对象中间用逗号分隔开,起始、结束用中括号,每个对象用大括号包起来

[{"settingDate":"","operatorId":"","protocolType":30,"seqNo":0,"switchPw":"","data":"","projectType":2,"settingTime":"","packetsLength":0,"updateType":false,"copyTime":"1604171630","packNo":0,"packageSerialN":0,"tSettingData":"","token":"","tSettingOpCode":"","rewireId":"","versionNo":[],"indexPacketsLength":0,"apcuType":0,"packetsAmount":0,"APDU":"","currentMillis":0,"switchAddr":"","rewireActionTime":0,"tSettingC":17,"webServiceType":false,"CRCByte":[],"taskPriority":0,"tSettingIdentify":"C3020001","switchC":0,"curveTimeTag":"","switchStep":0,"curveBlockNum":0,"frame":[],"rewireActionCount":0,"rewireActionResult":"","switchL":0,"rewireScore":0,"tSettingAddr":"542016041511","switchN1":0,"tSettingL":4,"tSettingPw":""},{"settingDate":"","operatorId":"","protocolType":30,"seqNo":0,"switchPw":"","data":"","projectType":2,"settingTime":"","packetsLength":0,"updateType":false,"copyTime":"1604171630","packNo":0,"packageSerialN":0,"tSettingData":"","token":"","tSettingOpCode":"","rewireId":"","versionNo":[],"indexPacketsLength":0,"apcuType":0,"packetsAmount":0,"APDU":"","currentMillis":0,"switchAddr":"","rewireActionTime":0,"tSettingC":17,"webServiceType":false,"CRCByte":[],"taskPriority":0,"tSettingIdentify":"C3010001","switchC":0,"curveTimeTag":"","switchStep":0,"curveBlockNum":0,"frame":[],"rewireActionCount":0,"rewireActionResult":"","switchL":0,"rewireScore":0,"tSettingAddr":"542016041511","switchN1":0,"tSettingL":4,"tSettingPw":""}]

对象Json(1个对象)
需要用到的属性:(1)protocolType (2)projectType (3)tSettingIdentify (4)tSettingC (5)tSettingAddr (6)tSettingAddr

[{"settingDate":"","operatorId":"","protocolType":30,"seqNo":0,"switchPw":"","data":"","projectType":2,"settingTime":"","packetsLength":0,"updateType":false,"copyTime":"1604171630","packNo":0,"packageSerialN":0,"tSettingData":"","token":"","tSettingOpCode":"","rewireId":"","versionNo":[],"indexPacketsLength":0,"apcuType":0,"packetsAmount":0,"APDU":"","currentMillis":0,"switchAddr":"","rewireActionTime":0,"tSettingC":17,"webServiceType":false,"CRCByte":[],"taskPriority":0,"tSettingIdentify":"C3010001","switchC":0,"curveTimeTag":"","switchStep":0,"curveBlockNum":0,"frame":[],"rewireActionCount":0,"rewireActionResult":"","switchL":0,"rewireScore":0,"tSettingAddr":"542016041511","switchN1":0,"tSettingL":4,"tSettingPw":""}]
0 0