当前位置: 代码迷 >> java >> 如何使用发送到android的对象数组发送多个数组
  详细解决方案

如何使用发送到android的对象数组发送多个数组

热度:86   发布时间:2023-07-27 09:39:37.0

我正在使用此代码此格式显示无效的 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
     }]
    }

检查这个 -

 {
     "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
     }
     ]
    }
  相关解决方案