【发布时间】:2021-12-28 09:49:20
【问题描述】:
我得到了所有参数 jsonEncode 然后我将通过 http post。 我已经在下面通过源代码进行了解释。
var abc = jsonEncode({
"requisitionID": "x",
"RetailerTitle": "Faruqe Ahmed Store",
"RetailerAddress" : "Dhaka Nilkhet",
"Market": "Nilkhet",
"RetailerAreaType":"R",
"RetailerType":"R",
"RetailerProprieterName": "Faruqe Ahmed",
"RetailerContactNumber": "01736611372",
"Longitude": "Longitude",
"Lattitude": "Lattitude",
"Thana": {"ThanaID": "Shahbag"},
"District": {"DistrictID": "Dhaka"},
"EntryParameter": {"CompanyID": "x"},
"EntryParameter": {"LocationID": "x"},
"EntryParameter": {"MachineID": "x"},
"EntryParameter": {"EntryBy": "D180064"},
"EntryParameter": {"UpdateBy": "x"},
"ImageFieldBanner": ""
}),
但是当我从 print(abc .toString()) 获取字符串时。然后 我只有
{
"requisitionID": "x",
"RetailerTitle": "Faruqe Ahmed Store",
"RetailerAddress" : "Dhaka Nilkhet",
"Market": "Nilkhet",
"RetailerAreaType":"R",
"RetailerType":"R",
"RetailerProprieterName": "Faruqe Ahmed",
"RetailerContactNumber": "01736611372",
"Longitude": "Longitude",
"Lattitude": "Lattitude",
"Thana": {"ThanaID": "Shahbag"},
"District": {"DistrictID": "Dhaka"},
"EntryParameter": {"UpdateBy": "x"},
"ImageFieldBanner": ""
}
跳过
"EntryParameter": {"CompanyID": "x"},
"EntryParameter": {"LocationID": "x"},
"EntryParameter": {"MachineID": "x"},
"EntryParameter": {"EntryBy": "D180064"},
我需要
{
"requisitionID": "x",
"RetailerTitle": "Faruqe Ahmed Store",
"RetailerAddress" : "Dhaka Nilkhet",
"Market": "Nilkhet",
"RetailerAreaType":"R",
"RetailerType":"R",
"RetailerProprieterName": "Faruqe Ahmed",
"RetailerContactNumber": "01736611372",
"Longitude": "Longitude",
"Lattitude": "Lattitude",
"Thana": {"ThanaID": "Shahbag"},
"District": {"DistrictID": "Dhaka"},
"EntryParameter": {"CompanyID": "x"},
"EntryParameter": {"LocationID": "x"},
"EntryParameter": {"MachineID": "x"},
"EntryParameter": {"EntryBy": "D180064"},
"EntryParameter": {"UpdateBy": "x"},
"ImageFieldBanner": ""
}
【问题讨论】:
标签: android json flutter http jsonencoder