You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2023/12/30 04:17:00 UTC

[jira] [Updated] (NIFI-12517) Expression Language isJson and AttributesToJSON processor do not consider an attribute with leading and trailing spaces to be JSON

     [ https://issues.apache.org/jira/browse/NIFI-12517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann updated NIFI-12517:
------------------------------------
    Fix Version/s: 1.25.0
                   2.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Expression Language isJson and AttributesToJSON processor do not consider an attribute with leading and trailing spaces to be JSON
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-12517
>                 URL: https://issues.apache.org/jira/browse/NIFI-12517
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>              Labels: backport-needed
>             Fix For: 1.25.0, 2.0.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> If there is an attribute which has embedded JSON but it has leading and and trailing spaces e.g.
> {code:java}
> "\n{\"name\":\"John\", \"age\":30, \"car\":null}\n"{code}
> the NIFI Expression Language isJson method does not consider it JSON and the AttributesToJSON processor when the JsonHandlingStrategy is NESTED does not consider it JSON. This is contrary to Jackson's ObjectMapper behavior which will parse the above example as a map.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)