Split the array inside the json into multiple rows via JOLT
I want to split the array inside the JSON, into multiple rows via JOLT. Here number of values inside the array can be varied.
Replace the keys into different codes in JSON by JOLT
0
Replace the Id value with name in JSON by JOLT
I have a json input as follows, need to replace the machine key with it’s name and then need to have following output json with the required mapping. Could someone help on this.
distance – “code” : “X2-P1”
temp – “code” : “X1-P1”
weight – “code” : “weight”
Jolt transform single json object into array of objects per attribute
I have a simple input json object that I would like to turn into an array of json objects, with the number of objects being equal to the number of attributes and each object inheriting one specific attribute. My input looks as follows:
Jolt transform to remove duplicate values in the array
I need to remove duplicates from the below JSon, if there are duplicates in the closed Array, only one value should be retained.
NiFi JOLT Transformation spec needed for merging 2 keys into 1 key and keep the value as the 3rd key’s value
NiFi JOLT Transformation spec needed for merging 2 keys into 1 key and keep the value as the 3rd key’s value.
How to transform a date value in a JSON using JOLT v0.1.1
I have this JSON input:
Transform a JSON using JOLT expression
Input JSON