โ08-26-2020 05:14 AM
Hi All,
I am converting XML file to JSON file using XML parser snap and JSON formatter.
When Iโm converting, prefix โ@โ is getting added to all the attributes. For example:-
In XML โ โProviderPaxRefโ: โStringโ
In Converted JSON โ โ@ProviderPaxRefโ: โStringโ
Now I wanted to remove prefix โ@โ from every element dynamically. Can anyone help me on this.
Regards,
Pankaj
โ08-27-2020 12:50 AM
@ppankaj88 Try this binary to document snap then replace(/[@]/g, โโ) .with content
โ08-27-2020 01:56 AM
Replace function is not working, could you please share an example.
โ08-27-2020 01:58 AM
After using doc to binary snap(make decoding as none) take one mapper and use
$content.replace(/[@]/g, โโ)