I have the next json file I want remove key and value for ProductCharacteristic ->name. How it can be done in Java?
[
{ "id": "0028167072_CO_FIX_INTTV_1008_P3909_IDX0",
"status": "Active",
"startDate": "2023-02-12T22:00:00Z",
"place": [ {
"id": "8",
"apartment": "578",
"role": "QA",
"@referredType": "street"
} ],
"ProductCharacteristic": [ {
"id": "CH_100473",
"valueId": "CH12_1000374_VALUE04141",
"value": "LTS",
"name": "Computer"
}
] }
]
Assuming you have a proper java project set up with Maven, and the following dependency in your
pom.xmlfile:You can parse and edit your JSON as follow: