You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by pv...@apache.org on 2020/09/30 12:15:19 UTC

[nifi] branch main updated: NIFI-2580 Added a little explanation note about a common issue new users face with jsonpath.

This is an automated email from the ASF dual-hosted git repository.

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new a66c3d8  NIFI-2580 Added a little explanation note about a common issue new users face with jsonpath.
a66c3d8 is described below

commit a66c3d8168cc1bf8e6bb074d4cb570742e49f643
Author: Mike Thomsen <mt...@apache.org>
AuthorDate: Wed Sep 30 07:43:34 2020 -0400

    NIFI-2580 Added a little explanation note about a common issue new users face with jsonpath.
    
    Signed-off-by: Pierre Villard <pi...@gmail.com>
    
    This closes #4561.
---
 .../additionalDetails.html                                         | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/additionalDetails.html b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/additionalDetails.html
index 150af81..a9b0190 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/additionalDetails.html
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/additionalDetails.html
@@ -27,5 +27,12 @@
             result evaluations in memory. Accordingly, it is important to consider the anticipated profile of content being
             evaluated by this processor and the hardware supporting it especially when working against large JSON documents.
         </p>
+
+        <h3>Additional Notes</h3>
+        <p>
+            It's a common pattern to make JSON from attributes in NiFi. Many of these attributes have periods in their names. For example
+            <em>record.count</em>. To reference them safely, you must use this sort of operation which puts the entire key in brackets:
+        </p>
+        <blockquote>$.["record.count"]</blockquote>
     </body>
 </html>