本帖最后由 叶耶耶 于 2024-5-29 15:55 编辑
这个JSON我需要取出 m_name 和 m_sPECS 和 m_inventorySecondUOM 里面的 m_name 这3个的值。请教在格子中如何表示取出?
由于JSON原文太长了,有700多行,不影响原有结构的情况下我删减一大部分贴上来
- {
- "ResCode": 0,
- "Success": true,
- "ResMsg": null,
- "Data": [{
- "$id": "1",
- "m_iD": 1002405270000136,
- "m_createdOn": "2024-05-27T13:51:26",
- "m_createdBy": "test",
- "m_modifiedOn": "2024-05-27T13:51:26",
- "m_modifiedBy": "test",
- "m_sysVersion": 0,
- "m_bulkUom": {
- "$id": "2",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_standardBatchQty": 0.000000000,
- "m_itemBulk": 0.000000000,
- "m_weightUom": {
- "$id": "3",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_isDualUOM": false,
- "m_isMultyUOM": false,
- "m_isDualQuantity": false,
- "m_converRatioRule": 0,
- "m_isVarRatio": true,
- "m_inventoryUOM": {
- "$id": "4",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_purchaseUOM": {
- "$id": "5",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_salesUOM": {
- "$id": "6",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_manufactureUOM": {
- "$id": "7",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_materialOutUOM": {
- "$id": "8",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_priceUOM": {
- "$id": "9",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_standardCost": 0.000000000,
- "m_costCurrency": {
- "$id": "10",
- "m_iD": 1,
- "m_code": "C001",
- "m_name": "人民币元",
- "sysState": 0
- },
- "m_isIncludedStockAsset": false,
- "m_effective": {
- "$id": "11",
- "m_isEffective": true,
- "m_effectiveDate": "2024-05-27T00:00:00",
- "m_disableDate": "9999-12-31T00:00:00",
- "sysState": 0,
- "SysEntityType": "UFIDA"
- },
- "m_org": {
- "$id": "12",
- "m_iD": 1002404122909457,
- "m_code": "10",
- "m_name": "demo",
- "sysState": 0
- },
- "m_descFlexField": {
- "$id": "13",
- "Multi_CombineName": {
- "_langs": [{
- "State": 4,
- "LangType": "zh-CN",
- "LangValue": ""
- }]
- }
- },
- "m_costUOM": {
- "$id": "14",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_picture": null,
- "m_code1": "",
- "m_searchCode": "",
- "m_isVersionQtyControl": false,
- "m_version": "",
- "m_isVMIEnable": false,
- "m_itemFormAttribute": 10,
- "m_code": "88888",
- "m_name": "料品测试2",
- "m_versionID": 0,
- "m_mrpInfo": {
- "$id": "15",
- "m_iD": 1002405270000137,
- "m_demandRule": 0,
- "m_isControlByDC": true,
- "sysState": 0
- },
- "m_saleInfo": {
- "$id": "16",
- "m_iD": 1002405270000138,
- "m_supplySource": 4,
- "m_supplyOrg": {
- "$id": "17",
- "m_iD": 1002404122909457,
- "m_code": "10",
- "m_name": "demo",
- "sysState": 0
- },
- "m_supplier": null,
- "m_isCTP": false,
- "m_bOMOrg": {
- "$id": "18",
- "m_iD": 1002404122909457,
- "m_code": "10",
- "m_name": "demo",
- "sysState": 0
- },
- "m_minOrderQtyCheckType": 0,
- "m_isCalLandCarriageFee": false,
- "m_itemForInvoice": {
- "$id": "19",
- "m_iD": 1002405270000136,
- "m_code": "88888",
- "m_name": "料品测试2",
- "sysState": 0
- },
- "m_nameForInvoice": "料品测试2",
- "m_sDTradePath": null,
- "m_isSDTradePathModify": true,
- "m_sDRtnTradePath": null,
- "m_isSDRtnTradePathModify": true,
- "m_salePriceList": 0,
- "m_allowAutoGetNum": true,
- "m_commodityTaxCode": "",
- "sysState": 0
- },
- "m_purchaseInfo": {
- "$id": "20",
- "m_iD": 1002405270000139,
- "m_descFlexField": {
- "$id": "21",
- "m_pubDescSeg1": "",
- "m_contextValue": "",
- "m_privateDescSeg1": "",
- "sysState": 0,
- "SysEntityType": "UFIDA",
- "CombineName": "",
- "Multi_CombineName": {
- "_langs": [{
- "State": 4,
- "LangType": "zh-CN",
- "LangValue": ""
- }]
- }
- },
- "m_statisticPeriod": -1,
- "sysState": 0
- },
- "m_inspectionInfo": {
- "$id": "22",
- "m_iD": 1002405270000141,
- "m_createdOn": "2024-05-27T13:51:26",
- "sysState": 0,
- "QualityDescription": null,
- "Multi_QualityDescription": {
- "_langs": []
- }
- },
- "m_mfgInfo": {
- "$id": "23",
- "m_iD": 1002405270000140,
- "m_createdOn": "2024-05-27T13:51:26",
- "sysState": 0
- },
- "m_inventoryInfo": {
- "$id": "24",
- "m_iD": 1002405270000142,
- "m_createdOn": "2024-05-27T13:51:26",
- "m_createdBy": "test",
- "sysState": 0
- },
- "m_stockCategory": {
- "$id": "25",
- "m_iD": 1002404180100072,
- "m_code": "0",
- "m_name": "订单",
- "sysState": 0
- },
- "m_productionCategory": null,
- "m_saleCategory": null,
- "m_inventoryUOMGroup": 0,
- "m_inventorySecondUOM": {
- "$id": "26",
- "m_iD": 1002404122913355,
- "m_code": "01",
- "m_name": "PCS",
- "sysState": 0
- },
- "m_sPECS": "规格",
- "m_entranceInfo": {
- "$id": "27",
- "m_iD": 1002405270000143,
- "m_createdOn": "2024-05-27T13:51:26",
- "m_isDrawback": true,
- "sysState": 0
- },
- "m_itemTradeMarkInfos": null,
- "m_isCostCalByGrade": false,
- "m_isCostCalByPotency": false,
- "m_mainItemCategory": {
- "$id": "28",
- "m_iD": 1002404180100072,
- "m_code": "0",
- "m_name": "订单",
- "sysState": 0
- },
- "m_itemSource": "XX",
- "m_itemMasterVersions": null,
- "sysState": 0,
- "AliasName": null,
- "Multi_AliasName": {
- "_langs": []
- },
- "Description": null,
- "Multi_Description": {
- "_langs": []
- }
- }]
- }
复制代码
|