<?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: Check Array or Object in JSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Check-Array-or-Object-in-JSON/m-p/201463#M163477</link>
    <description>&lt;P&gt;I assume this is being done in Nifi? (I would add the Apache-Nifi tag if so)&lt;/P&gt;&lt;P&gt;If you know the structure of the JSON object that you will be receiving, you can use an evaluateJSONPath processor to pull the JSON key's value into a flowfile attribute. Then an updateAttribute processor where you use Nifi expression language's 'equals' to determine if the value is as you expected.&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#equals" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#equals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The output of updateAttribute will be true or false and you can pass that to your routeOnAttribute processor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/85458-example.jpg"&gt;example.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps or gives you some ideas!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 04:34:56 GMT</pubDate>
    <dc:creator>nlewis135031</dc:creator>
    <dc:date>2018-08-01T04:34:56Z</dc:date>
  </channel>
</rss>

