title: How to match json by predicate?
body: <p>I have json file and all I need is to compare json with a predicate. I can do this:</p>
  <pre><code>var testJson = Json.FromJsonFile( &quot;test.json&quot; );
  var jsonPathQuery = &quot;$..items[?(@.value &gt;= 50)]&quot;;
  var predicateResult = testJson
          .SelectTokens( jsonPathQuery )
          .IsNotNullOrEmpty();
  </code></pre>
  <p>But I wanna use something like this:</p>
  <pre><code>private bool Matches(TestObject value, Expression&lt;Func&lt;TestObject, bool&gt;&gt; predicate)
      =&gt; default; // now it is default
  </code></pre>
  <p>Usage:</p>
  <pre><code>var testObject = Json.FromJsonFile&lt;TestObject&gt;( &quot;test.json&quot; );
  
  var matches = Matches( testObject, x =&gt; x.Entities.Any( entity =&gt; entity.Name == &quot;test&quot; ) );
  </code></pre>
  <p>Is it possible to do and how to do it?</p>