Questions tagged [jolt]

A JSON to JSON transformation library written in Java.

Jolt is a to JSON transformation library written in .

For more information, see the GitHub page.

Latest release: 0.1.6 released on Mar 28, 2022

1312 questions
2
votes
1 answer

Jolt Transform Issue

I'm facing an issue with implementing my Jolt Spec to transform this input. input: [ { "organizationName": "TOTOLAND", "organizationUid": "123456789", "usageByLicenseAndProduct": [ { "productType": "VSPC", …
2
votes
2 answers

Looping through multiple line items in a single array output in JOLT

I want to write a Jolt definition that loops through each object in my attachment array, and move the object to the data array. At the same time, it should map single object attachment nest, and move the object to the data object. Currently my spec…
Alexa
  • 43
  • 4
2
votes
1 answer

JOLT : Make Nested Make a nested array as part of main array

I am trying to transform the JSON as below expected output. Stuck with the spec below. Can someone help in this? There is an inner array with name "content" in the "results" array which I want to make it as a part of main array. Input JSON { …
2
votes
2 answers

Jolt Transformation: Make the nested object field to be part of main Json Object and also convert the nested object to String

I am new to JOLT transformation, can someone help me in transforming the Input JSON to the desired output? Input JSON: [ { "product_id": 1, "product_description": "Product 1 details", "billing_details": { "product_id": 1, …
2
votes
2 answers

JOLT - Move object to array if a key inside of the object exists

I want to write a JOLT definition that loops through each object in my data array, and move the object to the "found" array if the key "parent_id" is present, but otherwise, if the "parent_id" key is not present, move the entire current object to…
Grant
  • 23
  • 5
2
votes
2 answers

JOLT Transformation: Change field value based on the value in a nested element

I have a service that receives a JSON and needs to transform it to a different structure before sending to a third party API. Our team is using JOLT for transformations in the application. I have detailed the current scenario below along with the…
Vini
  • 8,299
  • 11
  • 37
  • 49
2
votes
1 answer

JOLT get arrays with dynamic keys

I'm trying to get some messages from a webservice. Inside data the keys are dynamic and i'm trying to get all the messages from the arrays and concatenate them in error message. { "success": false, "message": "Eroare validare date", "data": { …
caputz
  • 49
  • 5
2
votes
1 answer

Jolt transformation OMH Mapping to FHIR

Input: { "heart_rate": { "value": 70, "unit": "beats/min" }, "effective_time_frame": { "time_interval": { "start_date_time": "11/01/22 22:14:21" } }, "descriptive-statistics": "minimum" } Jolt Spec: [ { …
mbGraz
  • 23
  • 3
2
votes
1 answer

Re-arrange field in JOLT

I am trying to reposition a field called "distributedAmount" in my JOLT output. I want "distributedAmount" after "valid rules" tag. What I tried- But the above solution didn't worked. Any idea on what changes I need to make in my spec. d Desired…
Sam Jones
  • 45
  • 5
2
votes
1 answer

How does the jolt wildcards work for RHS?

I'm trying to understand the working of '#' wild card. I have used the '#' in the spec while preparing the productList and it works and I got the output as per my expectation. But I'm not sure about the working of it. Can anyone please help me to…
2
votes
2 answers

JOLT JSON transform values from one-to-many to one-to-one

I'm trying to map one key to each value in array to a new array by using JOLT. Could someone please help give me a solution for this: My JSON: [ { "person_id": "1", "resources": ["asd", "zxc"] }, { "person_id": "2", …
2
votes
2 answers

Rearrange values in JOLT

I want to know how to rearrange values in JOLT. I want poDesciption field before poType. I tried the below but didn't worked.- "poDescription": "&5.&4.&3.&2.&1.&", "poType": "&5.&4.&3.&2.&1.&", Any idea on what changes I need to make to get…
Sam
  • 123
  • 7
2
votes
1 answer

JOLT add a field in JSON in the middle of the structure

I try append a new field in a JSON structure,i need it in a determined position, before the array but the SPEC locate the field in the end. This is my JSON original and the code of transformation written in JOLT TRANSFORMATION web: INPUT: { "Id":…
2
votes
1 answer

Single Jolt Spec to return Child objects and Parent objects without null or Dups

I have a requirement where JSON may or may not have Array objects. My jolt specs expected JSON condition should be if it has array flatten the data and if it doesn't have array return same data My sample input [ { "PC9Code": "Parent1", …
2
votes
1 answer

Nifi - ignore(or remove) the first digit of JSON

I have a JSON with a variable that I need to ignore the first digit. { "destinatarioDTO" : { "cnpj" : "01377071000170" } } I got the variable with the EvaluateJsonPath. I need to transform the result 01377071000170 into 1377071000170…