[ https://issues.apache.org/jira/browse/NIFI-12517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann updated NIFI-12517: ------------------------------------ Summary: Expression Language isJson and AttributesToJSON processor do not consider an attribute with leading and trailing spaces to be JSON (was: Nifi Expression Language isJson and the AttributesToJSON processor does not consider an attribute with leading and trailing spaces to be JSON) > 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 > 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)