<?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: Evaluate json for attribute in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/280035#M208621</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70200"&gt;@LuxIsterica&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would split your json (SplitJson) &amp;gt; EvaluateJsonPath ( To turn att2 to an attribute and call it an attribute name ) &amp;gt; RouteOnAttribute ( To see if the attribute name you grabbed equals to aaa ) &amp;gt; Route it either to you found a relationship or unmatched&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-11 at 2.56.56 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24916i103B1C5970F340D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2019-10-11 at 2.56.56 PM.png" alt="Screen Shot 2019-10-11 at 2.56.56 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 19:04:54 GMT</pubDate>
    <dc:creator>DigitalPlumber</dc:creator>
    <dc:date>2019-10-11T19:04:54Z</dc:date>
    <item>
      <title>Evaluate json for attribute</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/279885#M208523</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I would like to implement this logic on nifi:&lt;BR /&gt;I have a json array:&lt;BR /&gt;[&lt;BR /&gt;{&lt;BR /&gt;"att1": "1",&lt;BR /&gt;"att2": "aaa"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"att1": "2",&lt;BR /&gt;"att2": "bbb"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"att1": "3",&lt;BR /&gt;"att2": "aaa"&lt;BR /&gt;},&lt;BR /&gt;]&lt;/P&gt;
&lt;P&gt;I would like that, according to the attribute, the json was processed to the processA or to the processB.&lt;/P&gt;
&lt;P&gt;For example, if att2 is equal "aaa", it was processed to the processA, else&amp;nbsp;it was processed to the processB.&lt;BR /&gt;I tried to follow the suggestion of the following solution&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Nifi-processor-route-json-array-into-multiple-json-arrays/td-p/128722" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Nifi-processor-route-json-array-into-multiple-json-arrays/td-p/128722&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but it didn't work. Can you give me an alternative?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 00:16:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/279885#M208523</guid>
      <dc:creator>LuxIsterica</dc:creator>
      <dc:date>2019-10-11T00:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate json for attribute</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/280035#M208621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70200"&gt;@LuxIsterica&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would split your json (SplitJson) &amp;gt; EvaluateJsonPath ( To turn att2 to an attribute and call it an attribute name ) &amp;gt; RouteOnAttribute ( To see if the attribute name you grabbed equals to aaa ) &amp;gt; Route it either to you found a relationship or unmatched&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-11 at 2.56.56 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24916i103B1C5970F340D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2019-10-11 at 2.56.56 PM.png" alt="Screen Shot 2019-10-11 at 2.56.56 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:04:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/280035#M208621</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2019-10-11T19:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate json for attribute</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/280067#M208651</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 07:01:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Evaluate-json-for-attribute/m-p/280067#M208651</guid>
      <dc:creator>LuxIsterica</dc:creator>
      <dc:date>2019-10-13T07:01:50Z</dc:date>
    </item>
  </channel>
</rss>

