You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by James McMahon <js...@gmail.com> on 2023/05/13 22:29:31 UTC

Eliminate \[[0-9]+\] from all json key names

A FlattenJson processor introduces [\d] into my key names, and I wish to
strip them out.

phoneNumber[0].type as the key should become phoneNumber.type

I don't care about losing the signifcance of the index. I only wish to know
they are phoneNumber.type keys.

How can this be accomplished using nifi processors? Is there a
JoltTransform that applies a regex to a key name?