<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can't get NiFi to consume a JSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/328299#M230235</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92869"&gt;@RB764&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your EvaluateJsonPath processor configuration is good.&amp;nbsp; This processor evaluates the json path expressions against the content of the inbound FlowFile and then with "&lt;STRONG&gt;Destination&lt;/STRONG&gt;"set to "&lt;STRONG&gt;flowfile-attribute&lt;/STRONG&gt;", it will create a new attribute for each dynamic property added to the processor with the value that results from the JsonPath.&lt;BR /&gt;&lt;BR /&gt;Your issue here is that your inbound FlowFile has no content for the EvaluateJsonPath processor to run the json path against.&amp;nbsp; I see that in your screenshot of the GenerateFlowFile processor you have added a new dynamic property "&lt;STRONG&gt;value&lt;/STRONG&gt;" with a value of "&lt;STRONG&gt;{"Country":"Austria","Capital":"Vienna"}&lt;/STRONG&gt;".&amp;nbsp; Dynamic properties become FlowFile attributes themselves on the FlowFile produced and not content.&lt;BR /&gt;&lt;BR /&gt;If you want to specify specific content via GenerateFlowFIle processor, you need to use the "&lt;STRONG&gt;Custom Text&lt;/STRONG&gt;" property to do so:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1634753376086.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32703i6B63BB6AB543522A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1634753376086.png" alt="MattWho_0-1634753376086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 18:10:17 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2021-10-20T18:10:17Z</dc:date>
    <item>
      <title>Can't get NiFi to consume a JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/327968#M230190</link>
      <description>&lt;P&gt;I am a newbie to NiFi and I am trying to pass a JSON object to NiFi. Having failed at multiple attempts, I am trying a very simple flow as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the JSON in online validators and have confirmed that it's a valid JSON file. Yet, I am not getting the output I want i.e. Country and Capital in flow file attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise where I am going wrong. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RB764_0-1634621309180.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32684i899BEC9D7EABF82E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RB764_0-1634621309180.png" alt="RB764_0-1634621309180.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RB764_1-1634621372142.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32685i11CA1E14814C1BBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RB764_1-1634621372142.png" alt="RB764_1-1634621372142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RB764_2-1634621429612.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32686iA8A9D59CB7834576/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RB764_2-1634621429612.png" alt="RB764_2-1634621429612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 05:33:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/327968#M230190</guid>
      <dc:creator>RB764</dc:creator>
      <dc:date>2021-10-19T05:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get NiFi to consume a JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/328299#M230235</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92869"&gt;@RB764&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your EvaluateJsonPath processor configuration is good.&amp;nbsp; This processor evaluates the json path expressions against the content of the inbound FlowFile and then with "&lt;STRONG&gt;Destination&lt;/STRONG&gt;"set to "&lt;STRONG&gt;flowfile-attribute&lt;/STRONG&gt;", it will create a new attribute for each dynamic property added to the processor with the value that results from the JsonPath.&lt;BR /&gt;&lt;BR /&gt;Your issue here is that your inbound FlowFile has no content for the EvaluateJsonPath processor to run the json path against.&amp;nbsp; I see that in your screenshot of the GenerateFlowFile processor you have added a new dynamic property "&lt;STRONG&gt;value&lt;/STRONG&gt;" with a value of "&lt;STRONG&gt;{"Country":"Austria","Capital":"Vienna"}&lt;/STRONG&gt;".&amp;nbsp; Dynamic properties become FlowFile attributes themselves on the FlowFile produced and not content.&lt;BR /&gt;&lt;BR /&gt;If you want to specify specific content via GenerateFlowFIle processor, you need to use the "&lt;STRONG&gt;Custom Text&lt;/STRONG&gt;" property to do so:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1634753376086.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32703i6B63BB6AB543522A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1634753376086.png" alt="MattWho_0-1634753376086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:10:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/328299#M230235</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-10-20T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get NiFi to consume a JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/328300#M230236</link>
      <description>&lt;P&gt;Thanks heaps!, &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;.&amp;nbsp;Much appreciated. This solved my issue.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 21:06:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-t-get-NiFi-to-consume-a-JSON/m-p/328300#M230236</guid>
      <dc:creator>RB764</dc:creator>
      <dc:date>2021-10-20T21:06:34Z</dc:date>
    </item>
  </channel>
</rss>

