title: How to filter by boolean value in Gatling JSONPath expression?
body: <p>How to filter by boolean value in JSONPath expression?</p>
  
  <p>I'm using this site which fails to validate my expression and I am looking for an explanation why:  <a href="https://jsonpath.curiousconcept.com/#" rel="nofollow noreferrer">https://jsonpath.curiousconcept.com/#</a></p>
  
  <p>My JSON is</p>
  
  <pre><code>{
    "whatever" : {
      "best" : {
        "reward" : "true"
      } 
    } 
  }
  </code></pre>
  
  <p>And my expression, which fails to match (in Gatling, not validator site), is either of these:</p>
  
  <pre><code>$.whatever.best[?(@.reward=='true')]
  $.whatever.best[?(@.reward==true)]
  </code></pre>
  
  <p>This expression works fine:</p>
  
  <pre><code>$.whatever.best.reward
  </code></pre>
  
  <p>And strangely, this works:</p>
  
  <pre><code>$..*[?(@.reward==true)]
  </code></pre>
  
  <p>What is wrong?   Please no guesses.  I provided the site in order to verify your answer.</p>
  
  <p>The instructions here did not help me:  <a href="https://support.smartbear.com/alertsite/docs/monitors/api/endpoint/jsonpath.html#filters" rel="nofollow noreferrer">https://support.smartbear.com/alertsite/docs/monitors/api/endpoint/jsonpath.html#filters</a></p>