- {
- "sendToData": {
- "data": [
- {
- "image": "/content/dam/kodm/na/allProducts/card/KF.Y1229_list.jpg",
- "addedDate": "01/18/2022 07:46",
- "otherRequirement": "",
- "pdpUrl": "/content/kodm/na/en/allproducts/dining/Dining_Chairs/KF.Y1229.html",
- "product_id": "KF.Y1229",
- "timezoneoffset": "0",
- "releasedate": "Oct 2021",
- "productIdTs": "KF.Y1229@@1642491970185",
- "list": {
- "list-option-1": {
- "img": "/content/dam/kodm/na/covers/Cover_icon/CU6721_5.jpg",
- "name": " Step 2 - Select Cover",
- "description": "CU6721-5"
- },
- "list-option-0": {
- "img": "/content/dam/kodm/na/popconfig/chair.jpg",
- "name": " Step 1 - Select Configuration",
- "description": "Dining chair"
- }
- },
- "product_name": "Dining Chairs",
- "customerName": "",
- "status": null
- },
- {
- "image": "/content/dam/kodm/na/allProducts/card/KF.Y1229_list.jpg",
- "addedDate": "01/18/2022 07:46",
- "otherRequirement": "",
- "pdpUrl": "/content/kodm/na/en/allproducts/dining/Dining_Chairs/KF.Y1229.html",
- "product_id": "KF.Y1230",
- "timezoneoffset": "0",
- "releasedate": "Oct 2021",
- "productIdTs": "KF.Y1229@@1642491970185",
- "list": {
- "list-option-1": {
- "img": "/content/dam/kodm/na/covers/Cover_icon/CU6721_5.jpg",
- "name": " Step 2 - Select Cover",
- "description": "CU6721-5"
- },
- "list-option-0": {
- "img": "/content/dam/kodm/na/popconfig/chair.jpg",
- "name": " Step 1 - Select Configuration",
- "description": "Dining chair"
- }
- },
- "product_name": "Dining Chairs",
- "customerName": "",
- "status": null
- }
- ],
- "targetEmail": "qkzgzj123",
- "comment": "12312313123123131",
- "customerName": "new_customer (New Customer)"
- }
- }
复制代码
通过 api ,传递过来的json数据,如上. 想通过服务端命令,解析出来product_id,, 怎么写服务端命令?
使用json反序列化命令,我只会解析 target email,commment,customername.
不知道该怎么解析 data 里面的 product_id .
请指教, 万分感谢.
|