title: Get all properties in an object array
body: <p>I have a clojure object array; something similar to: </p>
  
  <pre><code>(def data {
      :genre "fantasy"
      :books [
          { :id 1 :name "Lord of the rings" }
          { :id 2 :name "Game of thrones" }
          { :id 3 :name "Harry potter" }]
      })
  </code></pre>
  
  <p>I want to get all the id of books.. something like <code>[1 2 3]</code></p>
  
  <p>I've tried a few things: </p>
  
  <ol>
  <li><code>(seq (data :books :id))</code></li>
  <li><code>(data :books) :id)</code> <code>;results in an error, as expected</code></li>
  </ol>
  
  <p>But I can't figure out how to get the ids. Do I have to use a doseq or other iterator function to get the ids? </p>
  
  <p>Thanks</p>