title: "Cannot deconstruct an array as an object"
body: <p>I have the following query</p>
  
  <pre><code>SELECT * FROM (
      SELECT * from "Table0"        
      UNION SELECT * from "Table1" 
      UNION SELECT * from "Table2" 
      UNION SELECT * from "Table3" 
      UNION SELECT * from "Table4" 
      UNION SELECT * from "Table5") as req 
      join lateral json_each_text(previewcontent::json) j on true where j.value like '%0.0'
  </code></pre>
  
  <p><code>PreviewContent</code> is a <code>jsonb</code> field.</p>
  
  <p>But Postgres returns the following error:</p>
  
  <p>
  
  <pre><code>ERROR: cannot deconstruct an array as an object
  SQL state: 22023
  </code></pre>
  
  <p>I don't know why. 
  This request was working few days ago.</p>