title: JSONPath :contains filter
body: <p>Hey all, I was wondering if any knew of a way to use a regular expression or wildcard operator (or pehaps <code>'%LIKE%'</code> in SQL) so I could use JSONPath to do searching within a large set of JSON data.</p>
  
  <p>For instance (and yes, I'm parsing, not <code>eval( )</code>ing my data in the app):</p>
  
  <pre><code>var obj = eval ( '({ "hey": "can you find me?" })' );
  </code></pre>
  
  <p>And I'd like to be able to look through the data like this:</p>
  
  <pre><code>$.[?(@.hey:contains(find))] // (in jQuery terminology)
  </code></pre>
  
  <p>where the contents of an argument is part or all of the value in the <code>{ "key" : "value" }</code> pairs in my data.</p>
  
  <p>At the moment I have only found documentation on <code>&gt;</code>, <code>&lt;</code>, <code>=</code>, and <code>!=</code> relational operators, which don't give me that much flexibility.</p>
  
  <p>Does anyone know a way I can just <strong>just</strong> JSONPath to find this data (without having to loop through all the entries)?</p>
  
  <p>I don't want to use Dojo's JSONQuery, as this would require another library.  However, it lets you do this, here their example:</p>
  
  <pre><code>[?description~‘*the*’]
  </code></pre>
  
  <p>Ask me if you want more clarification of the question.</p>