title: Get min value from a nested json object
body: <p>I have json object of which I would like to get the min price. Below is the response.</p>
  
  <pre><code>[
    {
      "room": {
        "price": 217,
        "available": true
      }
    },
    {
      "room": {
        "price": 302,
        "available": true,
      }
    },
    {
      "room": {
        "price": 427,
        "available": true,
      }
    }
  ]
  </code></pre>
  
  <p>I have tried a solution from <a href="https://stackoverflow.com/questions/11142884/fast-way-to-get-the-min-max-values-among-properties-of-object">Stackoverflow</a> but it won't work in case.</p>
  
  <pre><code>  var arr = Object.keys( response ).map(function ( key ) { return response[key]; });
    var min = Math.min.apply( null, arr );
  </code></pre>
  
  <p>Please help</p>