如何发送带有对象数组的多个数组发送到android
Posted
技术标签:
【中文标题】如何发送带有对象数组的多个数组发送到android【英文标题】:How to send multiple array with array of objects send to android 【发布时间】:2019-07-06 21:28:43 【问题描述】:我正在使用此代码,此格式显示无效 JSON 请告诉我任何 android 代码
Format:-->
"supplyType":"O",
"subSupplyType":"1",
"subSupplyDesc":"TESTDESCRIPTION",
"docType": "BIL",
"docNo": "18-86"
"itemList": [
"productName": "Wheat",
"productDesc": "Wheat",
"hsnCode": 84,
"quantity": 10,
"qtyUnit": "BOX",
"cgstRate": 0,
"sgstRate": 0,
"igstRate": 12,
"cessRate": 0,
"cessAdvol": 0,
"taxableAmount":5609889
,
"productName": "Wheat",
"productDesc": "Wheat",
"hsnCode": 84,
"quantity": 10,
"qtyUnit": "BOX",
"cgstRate": 0,
"sgstRate": 0,
"igstRate": 12,
"cessRate": 0,
"cessAdvol": 0,
"taxableAmount":5609889
]
【问题讨论】:
不清楚你在问什么。 我在问如何使用 volley #Vladyslav Matviienko 将这种格式的数据发送到 android 到服务器 把它作为字符串发送 【参考方案1】:检查这个 -
"supplyType":"O",
"subSupplyType":"1",
"subSupplyDesc":"TESTDESCRIPTION",
"docType": "BIL",
"docNo": "18-86",
"itemList": [
"productName": "Wheat",
"productDesc": "Wheat",
"hsnCode": 84,
"quantity": 10,
"qtyUnit": "BOX",
"cgstRate": 0,
"sgstRate": 0,
"igstRate": 12,
"cessRate": 0,
"cessAdvol": 0,
"taxableAmount":5609889
,
"productName": "Wheat",
"productDesc": "Wheat",
"hsnCode": 84,
"quantity": 10,
"qtyUnit": "BOX",
"cgstRate": 0,
"sgstRate": 0,
"igstRate": 12,
"cessRate": 0,
"cessAdvol": 0,
"taxableAmount":5609889
]
【讨论】:
任何代码如何以这种格式的android将数据发送到服务器? 那么,你想从服务器获取这些数据并显示在 android 应用程序中吗?@kuldeep sharma 不,我没有获取我正在发送数据@Dhanshri以上是关于如何发送带有对象数组的多个数组发送到android的主要内容,如果未能解决你的问题,请参考以下文章
Ajax 将带有两个数组的 JSON 对象发送到一个 servlet 并在没有 jQuery 的情况下在 java servlet 中解析
如何将带有字节数组的 json 发送到 web api / postman