on 12-20-2023 6:07 AM
Hi,
I am trying to convert XML field to JSON integer value through standard XML to convertor.
For example,Source is like:
<root><record><LineNo>1</LineNo><text>abcd</text></record></root>
Current output is:
{
"root": {
"record": {
"LineNo": "1",
"text": "abcd"
}
}
}
Expected output is:
{
"root": {
"record": {
"LineNo": 1,
"text": "abcd"
}
}
}
I understand as of now in standard there is no such option, but can same be done via groovy or XSLT mapping.
Also there can be multiple record segments in XML
Thanks in advance!
Mayank
User | Count |
---|---|
72 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.