Any way we can use if else conditions in Jolt Transform : Input : Output : If aname is “FOO” then change to fname else let it be to aname. Answer Jolt Spec for If – Else:
Tag: jolt
Concatenating a string to a JOLT value output
I using JOLT to transform and extract a URL of an object, but it’s only the URL slug. Is it possible to concatenate a static string to that slug to have a full URL? The current output is: And the expected output is: The JOLT Spec is: The JSON input is: Any option to add the static URL link to
Adding default values to array in Jolt
I am trying to transform a json using jolt, it’s just adding some default values to an array. the input looks like this: The output should be: My spec looks right now: I just can’t pass the valC to the listWithItems and haven’t found anything in the documentation. Can someone help me with this? Thank you in advance! Answer One
Jolt how to include object outside list and add it to each object of list
I have an array which I have to iterate and append object that is outside the list to each of the object inside list. It is not happening properly. Since offerings is an array if it has multiple objects to each object I need to have typeId of that object. Request: My spec: Response now: Expected: Please help to achieve
Null Check in Jolt while converting string to integer For an Object
I am doing conversion of string to integer/double in my jolt spec. If elements does not come in request, then empty object is coming in response. Instead I do not want to pass that object itself as its empty. Input Request Working: Jolt Spec: Output if tag is there in request: But when input request is like below where I
Jolt Transformation Spec for array of arrays [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I hava a json input and expected output is below. please help me in generating the spec. Input JSON: Expected Output JSON: please help me
How can I insert an array into a specific array element using Jolt
Question/problem How can I use Jolt to insert an array into a specific object in an array? input The objects have a common set of attributes, but support optional attributes. Specific objects need to get these optional attributes depending on their specific position in the array, i.e. second ([1]). These optional attributes are to be added as part of the