Member since
07-13-2018
4
Posts
0
Kudos Received
0
Solutions
08-01-2018
03:15 PM
@Nick Lewis thanks for your answer but I don't think it would resolve my problem. I know the JSON structure except for one of the objects. I'm facing 2 different situations, I'll make an example in pseudo-language: 1) "key":[{obj},{obj}...{obj}] 2) "key":{obj} I wasn't able to produce a proper JOLT spec, cause I need to loop inside the array in case 1). I was able to find a different solution though. Using an ExecuteScript processor and an ECMAScript (using Array.isArray()) then setting a proper attribute in the Flowfile, then routing to different JOLT spec, I'm able to handle case 1) an 2) separately. This is actually working pretty well but I'm still wondering if I could handle the 2 cases inside one JOLT spec. (I edited the tags, sorry :))
... View more
07-30-2018
11:01 AM
Hello everybody. In order to use a JOLT specification, I need to check ,inside my JSON, if a specific key is an Array or an Object and then route on an attribute, to be set after the validation. I tried different ways, through json path evaluators, attributes and so on and came to the conclusion that the only right way to do it is by executing a script, right? Has someone ever come across the same problem? If yes, could you provide some examples? Thanks!
... View more
Labels:
- Labels:
-
Apache NiFi