Relative Content

Tag Archive for jolt

jolt transformation for EDI data

I’m looking to transform EDI 834 data (in json) using jolt. Basically, I’d like the internal array of HD-2300_loop ‘drive’ the output. Here’s the (simplified) input:

How to check if an array contains elements or not

Have to check if the array contains elements or not. if so then should add sourceKey element the array. Always key.sourceKey element should be passed in partySales.item array only if item array have other elements. if the item array is empty then don’t send partySales object at all in the output json

How to remove an element from array based on condition in jolt

There are multiple items in the array in which I am trying to remove the item whose idTypDesc is id if there is another item in array with idTypDesc as Ultimate ID. if the array doesn’t have item with idTypDesc as Ultimate ID then don’t remove the item whose idTypDesc is id