title: operator does not exist: json @> unknown
body: <p>I have the following table and I want the layout name whose userid='user-1' and gridname='RT' </p>
  
  <pre><code>| userid |                                                                              defaultdata |
  |--------|------------------------------------------------------------------------------------------|
  | user-1 | [{"gridname":"RT", "layoutname":"layout-1"},{"gridname":"RT2", "layoutname":"layout-2"}] |
  | user-2 | [{"gridname":"RT", "layoutname":"layout-3"},{"gridname":"RT2", "layoutname":"layout-2"}] |
  </code></pre>
  
  <p>I have tried this so far.   </p>
  
  <pre><code> SELECT userid, obj.value-&gt;&gt;'gridname' AS gridname
   FROM   col.userdefault t
   JOIN   lateral jsonb_array_elements(t.defaultdata::jsonb) obj(value) ON 
   obj.value-&gt;&gt;'_gridname' = 'RT'
   WHERE  defaultdata @&gt; '[{"_gridname":"RT"}]';
  </code></pre>
  
  <p>But not working and getting the below error: </p>
  
  <pre><code>ERROR:  operator does not exist: json @&gt; unknown
  LINE 4: WHERE  defaultdata @&gt; '[{"_gridname":"RT"}]::jsonb';
                             ^
  HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
  SQL state: 42883
  Character: 198
  </code></pre>