Member since
04-22-2020
9
Posts
0
Kudos Received
0
Solutions
09-24-2020
12:27 AM
Hi @stevenmatison, Thanks, but I have to make a judgemental update in JSON. As I explained in the example only id with a particular value will be updated. Please assist.
... View more
09-22-2020
10:39 PM
Hi, I have below JSON file with multiples image's details { "images": [{ "id": "C2934", "ds_folder_id": "759838458734" }, { "id": "C8343", "folder_id": "3942879137986" }] }. I have id of the image and have to update the folder_id with some value. For Example: id is C8343 and the new folder_id is 2984584735 then I have to update folder_id of the JSON file with new one. New JSON would be { "images": [{ "id": "C2934", "ds_folder_id": "759838458734" }, { "id": "C8343", "folder_id": "2984584735" }] }. Please help me to perform above in NiFi.
... View more
Labels:
- Labels:
-
Apache NiFi
04-24-2020
07:45 AM
I have some sort of the same scenario. But I have to route out on department value, like department="IT" route to some other flow and for department="DB" route to another flow. For that, I have written out expression as $.[?(@.department=="DB")]. But this doesn't work. Please suggest for the above scenario. And also if we have to apply some conditions like route data for a>10 like that.
... View more
04-22-2020
11:56 PM
I have designed flow in nifi for XML to JSON converter. And for that, I have used GenerateFlow File and JoltTransformRecord(not JoltTransform JSON). But I am getting null value in the JSON file with the schema(output in screen shot). Please find my jolt specification: [ { "operation":"shift", "spec":{ "to":"Receiver", "from":"Sender", "heading":"Heading", "body":"Message" } } ] Jolt Transformation DSL is chain. As I am trying to convert XML to JSON and make a change in element name in one go through JoltTransformRecord. I think JoltTransformRecord accepts any form of payload and then converts it into JSON format and then applies the change in elements of the JSON file. Output Input file Please help why this happens. thanks
... View more
Labels:
- Labels:
-
Apache NiFi