我如何知道JSON字符串包含不提供任何键的数组(在Java中)?

时间:2019-05-16 10:55:31

标签: json gson

以下Json代码:

{
  "supplierName": null,
  "materialNumber": "TEST_MATERIAL_NUMBER",
  "drugList": {
    "data": [{
      "drugId": "11",
      "drugName": "TEST_MATERIAL_NUMBER_1",
      "drugPzn": "TEST_PZN_1"
    }, {
      "drugId": "12",
      "drugName": "TEST_MATERIAL_NUMBER_2",
      "drugPzn": "TEST_PZN_2"
    }],
    "recordCount": 2
  }
}

0 个答案:

没有答案