Re: Unable to properly tally all keys in nested json

2023-05-13 Thread James McMahon
I tried parsing the stream without forcing it to text, like you had done Paul. I thought maybe that was the source of my problem, so I changed that to this: def root = new JsonSlurper().setType(JsonParserType.LAX).parse(inputStream) I continue to get this error:

Re: Unable to properly tally all keys in nested json

2023-05-13 Thread James McMahon
Thank you Paul. I have integrated this approach into the framework of my NiFi ExecuteScript code, which reads the flowfile content from the stream. I am seeing an undefined method error, and it seems to indicate it cannot digest the json. Does anything jump out at you as an obvious error in my