05-20-2022 03:31 AM
Hi,
I would like to create the below outbound message from an incoming object array.
{
"root": {
"elementName": {
"@attributeName": "attributeValue",
"$": "elementValue"
},
"repeatedElement": [
{
"key": {
"@attr": "attr1",
"$": "key1"
},
"value": "value1"
},
{
"key": {
"@attr": "attr2",
"$": "key2"
},
"value": "value2"
}
]
}
}
Any suggestion please on the repeated elements, attributes, and values?
Thanks,
Deepak Shaw
Solved! Go to Solution.
05-20-2022 05:36 AM
Done, check the pipeline and let me know if this works for you. Can be made with multiple mappers or a JSON Schema as well, but this is simpler in terms of snaps usage.
05-20-2022 03:40 AM
Hey @deepak.shaw,
Are you able to share a sample of the incoming data?
05-20-2022 03:58 AM
Hi,
Yes, Attached the incoming message.
Looking forward for your suggestion/solution.
Regards,
Deepak.
05-20-2022 03:58 AM
Hi @bojanvelevski , the required file is attached.
05-20-2022 04:04 AM
The objects contain quite a lot information, so please share some info on which are the corresponding fields that you want in your output.