title: find_by() in json data
body: <p>I am using <code>ahoy</code> gem for analytics. In the <code>ahoy_events</code> table, I have <code>properties</code> column of json data type. I want to find specific data based on that column.</p>
  
  <p>Suppose I have </p>
  
  <pre><code>{"tag":"a","class":"bigyapan-6","page":"/client/dashboard","text":"","href":"http://www.google.com"}
  </code></pre>
  
  <p>this as data and I want to find_by class.</p>
  
  <p>In the <code>rails c</code> I ran <code>Ahoy::Event.find_by(properties[:class]: "bigyapan-6")</code> and it gave me an err </p>
  
  <pre><code>Ahoy::Event.find_by(properties["class"]: "bigyapan-6")
  SyntaxError: unexpected ')', expecting end-of-input
  </code></pre>