title: Jayway Jsonpath syntax for string array filter?
body: <p>I am attempting to use the EvaluateJsonPath processor in Nifi, and am having trouble with the jayway jsonpath syntax.
  My object looks like the following:</p>
  
  <pre><code>{"text":"my stuff", "tags":["abc", "xyz", "beq"]}
  </code></pre>
  
  <p>I want to route messages based on the tags - I want everything containing "xyz" to be routed one way, and everything not containing it to be routed another way.
  Using <a href="http://jsonpath.herokuapp.com/" rel="nofollow noreferrer">http://jsonpath.herokuapp.com/</a> I've been testing and trying to figure out the syntax to filter based on a json object containing an array of strings matching. I can match based on overt index (so <code>$.[?(@.tags[1] =~ /xyz/i)]</code> works just fine), but I can't guarantee the order or number of objects in the tags field.</p>
  
  <p>Is there a way to do this in the jayway json module? I saw <a href="https://stackoverflow.com/questions/30030652/filter-the-json-according-to-string-in-an-array-in-jsonpath">filter the Json according to string in an array in JSONPATH</a> which I've tried, but it doesn't appear to work in the simulator above. </p>