I am new to JOLT and got stuck up this requirement, i saw some examples online but in my requirement i needed to add element in a new structure. I hope anyone will be able to understand what i am trying to say
Input JSON
[
{
"ROWSET": {
"ROW": {
"CLTCORP": "1000", //This is CorpId
"CTLITEM": "5000", //This is CorpItemCd
"WHID": "17", //This is WarehouseId
"CTLFAC": "AAHC", //This is FacilityName
"CORP": "001" //This is CorpItem
}
}
}
]
This is expected JSON
{
"SupplyItemData": {
"CorpId": 1000,
"CorpItemCd": 5000
"Warehouse": [{
"WarehouseId": 17,
"FacilityName": "AAHC"
}]
"CorpItem": 001
}
}
Any help or suggestion is appreciated.
I followed few links Transform JSON-JSON JOLT but could not relate exaclty to my use case