[
https://issues.apache.org/jira/browse/NIFI-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15419029#comment-15419029
]
ASF GitHub Bot commented on NIFI-2460:
--------------------------------------
Github user devin-fisher closed the pull request at:
https://github.com/apache/nifi/pull/777
> Add StringEscapeUtils function to Nifi Expression Language
> ----------------------------------------------------------
>
> Key: NIFI-2460
> URL: https://issues.apache.org/jira/browse/NIFI-2460
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Devin Fisher
> Fix For: 1.0.0
>
>
> When using Nifi Expression Language to build up a transport format (like JSON
> or XML) there is no go way to make sure that it has been properly escaped.
> Example Use Case:
> When using PutHTTP to a Web Service that requires JSON input. If the
> incoming data could contain String with quotes or other disallow character in
> JSON there is no reliable way to Escape the inputs as you put them into a
> larger JSON object.
> Proposed Change:
> StringEscapeUtils is part of apache commons-lang which is already a
> dependency for nifi base POM. The functions in StringEscapeUtils can easily
> be mapped into functions in nifi expression language.
> Work Done:
> I have the work done on a fork and am ready to submit a PR. That PR should
> get good review since it is my first contribution (outside of a fixed typo)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)