title: How to build an array from a jSon object
body: <p>I am trying to build  2 arrays from JSON arrays.</p>
  <pre><code>{
      &quot;2015-03-24&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;150&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
      &quot;2015-03-25&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;150&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
      &quot;2015-03-26&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;150&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
      &quot;2015-03-27&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;100&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
      &quot;2015-03-28&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;100&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
      &quot;2015-03-29&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;100&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;available&quot;
      },
  
  
      &quot;2015-04-10&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;booked&quot;
      },
      &quot;2015-04-11&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;booked&quot;
      },
  
      &quot;2015-05-01&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;unavailable&quot;
      },
      &quot;2015-05-02&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;unavailable&quot;
      },
      &quot;2015-05-03&quot;: {
          &quot;bind&quot;: 0,
          &quot;info&quot;: &quot;&quot;,
          &quot;notes&quot;: &quot;&quot;,
          &quot;price&quot;: &quot;&quot;,
          &quot;promo&quot;: &quot;&quot;,
          &quot;status&quot;: &quot;unavailable&quot;
      },
  
  
  }
  </code></pre>
  <p>This is the jSon array, so I want to build 2 arrays.</p>
  <p>1 array holding only keys  (in this case the date)  of those element where <code>status=='booked' nOR status=='unavailable'</code> and build it in jQuery array like this</p>
  <pre><code>var array = ['2015-03-19', '2015-03-20', '2015-03-21', '2015-03-22', '2015-03-23', '2015-03-24', '2015-03-25', '2015-03-26', '2015-04-07', '2015-04-08', '2015-04-09', '2015-04-10'];
  </code></pre>
  <p>Another is building  another array with the dates of those days where <code>status=='available' AND price &gt; '100$'</code></p>
  <p>var array2 = [ '2015-03-25', '2015-03-26', '2015-04-07', '2015-04-08'];</p>
  <p>How can I achieve this on with jQuery?</p>