Hi Dan,

I personally think this is a fair addition to the expression language
options we have. Feel free to file a JIRA and submit a pull request if
you'd like to do so.

Thanks,
Pierre

Le ven. 7 oct. 2022 à 08:34, Dan S <dsti...@gmail.com> a écrit :

> My team has flow file attributes which we do not always know whether they
> are JSON or not. We would like to run JsonPath on them but when they are
> not  JSON we get flow files yielding as detailed in NIFI-10396
> <https://issues.apache.org/jira/browse/NIFI-10396>. I understand the
> reasons given there not to support the patch but I was thinking of possibly
> another solution which could short circuit the issue. I wanted to propose a
> new Expression Language method isJson which would determine whether an
> attribute is JSON or not. This would allow for determining whether an
> attribute is JSON and pass it along to JsonPath or route accordingly when
> it is not JSON. Does that sound reasonable?
>

Reply via email to