title: Iteration over json array elements in PostgreSQL
body: <p>I've got two JSON data row from the column in postgresql database and that looks like this.</p>
  
  <pre><code>{
    "details":[{"to":"0:00:00","from":"00:00:12"}]
  }
  
  {
    "details":[ 
               {"to":"13:01:11","from":"13:00:12"}, 
               {"to":"00:00:12","from":"13:02:11"}
              ]
  }
  </code></pre>
  
  <p>I want to iterate over details and get only the "from" key values using a query in postgresql.
  I want it like</p>
  
  <pre><code>                             from
                             00:00:12
                             13:00:12
                             13:02:11
  </code></pre>