title: How to filter by string in JSONPath?
body: <p>I have a JSON response from the Facebook API that looks like this:</p>
  
  <pre><code>{
    "data": [
       {
         "name": "Barack Obama", 
         "category": "Politician", 
         "id": "6815841748"
       }, 
       {
         "name": "Barack Obama's Dead Fly", 
         "category": "Public figure", 
         "id": "92943557739"
       }]
   }
  </code></pre>
  
  <p>I want to apply JSONPath to it to only return results with a category of "Politician". From what I've read, it appears that I need to do:</p>
  
  <pre><code>$.data[?(@.category=='Politician')]
  </code></pre>
  
  <p>but according to the <a href="http://jsonpath.curiousconcept.com/" rel="noreferrer">testing tool</a> I found, this doesn't work. I found <a href="https://stackoverflow.com/questions/5560455/using-jsonpath-looking-for-a-string">another question</a> which suggests that I should use "eq" instead of "==", but that doesn't work either. What am I getting wrong here?</p>