0

我有一个像这样的 json 对象

[[{"class":"core.classes.lab.LabOrder","dueDate":1376073000000,"orderCreateDate":1376073000000,"orderCreateUser":1,"orderLastUpdate":1376073000000,"orderLastUpdateUser":1,"orderLocation":"private","orderPriority":2,"orderRemarks":null,"orderStatus":"pending","order_ID":1,"testID":{"LOINCCode":"1234","category":"Blood","class":"core.classes.lab.TestDescription","isSpecimenAvailable":true,"testDescription":"Collect Blood Specimen and get the details ","testID":1,"testName":"Blood Sugar","testProcedure":"Collect Blood"}},{"LOINCCode":"1234","category":"Blood","class":"core.classes.lab.TestDescription","isSpecimenAvailable":true,"testDescription":"Collect Blood Specimen and get the details ","testID":1,"testName":"Blood Sugar","testProcedure":"Collect Blood"}]]

我想从这个json中删除以下部分

{"LOINCCode":"1234","category":"Blood","class":"core.classes.lab.TestDescription","isSpecimenAvailable":true,"testDescription":"Collect Blood Specimen and get the details ","testID":1,"testName":"Blood Sugar","testProcedure":"Collect Blood"}

有没有简单的方法可以做到这一点

4

1 回答 1

1

var jsonObject = {“类”:“core.classes.lab.LabOrder”,“dueDate”:1376073000000,“orderCreateDate”:1376073000000,“orderCreateUser”:1,“orderLastUpdate”:1376073000000,“orderLastUpdateUser”:1,“orderLocation ": "private", "orderPriority": 2, "orderRemarks": null, "orderStatus": "pending", "order_ID": 1, "testID": { "LOINCCode": "1234", "category": " Blood", "class": "core.classes.lab.TestDescription", "isSpecimenAvailable": true, "testDescription": "采集血样并获取详细信息", "testID": 1, "testName": "血糖”,“测试程序”:“收集血液”}}

删除jsonObject.testID

于 2013-08-13T18:47:51.667 回答