How to add empty fields to the nested object in jolt based on input
Input:
How to Remove Empty Objects in Jolt Transformation Output?
Issue:
Despite not having contactEnrichment in the input JSON, the output JSON always includes “contactEnrichment”: {}. I want to completely omit the contactEnrichment field when it’s empty or not present in the input.
JOLT config fix
I’ve a JSON like this:
Jolt Transform to filter elements in list from another list
I have a employeeList from which I need to remove members in the teamList. Members in the teamlist can be there in employeeList or may not be there as shown below
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:
Prevent/remove null values in array as result of JOLT transform
I have a large payload for a complex (for me 🙂 JOLT transformation spec that gives empty/null values in the end result. Since the input, spec and output are quite big I have provided pastebin links. Hope this is OK.
How to add feilds to nested json input structure
How to add fields to this nested structure? Also How to use a condition for overwrite operation?
jolt spec to generate json based on attribute conditions from json?
My input json :
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