cancel
Showing results for 
Search instead for 
Did you mean: 

How to use JSON To XML to remove Attribute

tholan96
Discoverer
0 Kudos

Hi,

I am looking to convert below JSON to XML and use it in mapping and send to SFDC. But I am unable to convert due to Attributes coming in the response from S4.

{

"@odata.context": "$metadata#QualityNotification",

"@odata.metadataEtag": "W/\"20231011103819\"",

"value": [

{

"@odata.etag": "W/\"SADL-020230802142305C~20230802142305\"",

"QualityNotification": "200000000",

}

]

}

Could you help me and guide how I can remove the attributes and pass only the required values?

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Kudos
tholan96
Discoverer
0 Kudos

Hi Shivaram,

I tried But I am unable to remove @odata.context and @odata.metadataflag.

even though tried using jsonObject.remove("@odata.context")

jsonObject.remove("@odata.metadataEtag") but still I am unable to remove them.