title: Select data field json in array of text PostgreSQL
body: <p>I have a table <code>books</code> with field <code>json</code> in PostgreSQL 9.3.</p>
  
  <pre><code>CREATE TABLE books ( 
      id integer, 
      data json 
  );
  </code></pre>
  
  <p>The rows of table</p>
  
  <p><img src="https://i.stack.imgur.com/1Eedm.png" alt=""></p>
  
  <p>I need to execute <code>select</code> in field <code>author</code> (json) of the field <code>data</code> (table)</p>
  
  <p>Example:</p>
  
  <p><code>select * from books where data-&gt;&gt;'author' = 'Bob' or data-&gt;&gt;'author' = 'Xavier'</code></p>
  
  <p>It is possible?</p>
  
  <p>Thanks</p>