2021-12-05

NiFi Jolt Specification for array input

I have the following input in Nifi Jolt Specification processor:

[
   {
      "values":[
         {
            "id":"paramA",
            "value":1
         }
      ]
   },
   {
      "values":[
         {
            "id":"paramB",
            "value":3
         }
      ]
   }
]

Expected output:

[
 {
    "id":"paramA",
    "value":1
 },
 {
    "id":"paramB",
    "value":2
 }
]

Can you explain how I have to do?

thanks in advance



from Recent Questions - Stack Overflow https://ift.tt/3Drelw9
https://ift.tt/eA8V8J

No comments:

Post a Comment