Member since
03-25-2018
2
Posts
0
Kudos Received
0
Solutions
03-25-2018
06:02 AM
Hi There,
I wish to apply a simple transformaton to a JSON using JOLT. I want to apply :substring(1,2) to the value of the key. I am using default jolt transformation but I don't know how to access the value of JSON from within JOLT and then apply the transformation? Please help. JOLT : [{
"operation": "default",
"spec": {
"c":"${b:substring(1,2)}"
}
}] JSON : {
"b":"hello"
}
Result : {
"c":"",
"b":"hello"
} Expected result : {
"c":"e",
"b":"hello"
}
... View more
Labels:
- Labels:
-
Apache NiFi