title: API JSON Response Select Lowest Price
body: <p>I'm making an AJAX call to an API and getting the following json (below) response. I'm wanting to get the lowest 'MinPrice' from 'Quotes', but can't seem to figure out the best approach. </p>
  
  <p>I can loop through the quotes and push each minprice into an array, and then sort that array to get the lowest value, but I also want that specific quotes extra information i.e it's 'outboundleg'.</p>
  
  <pre><code>{
      "Quotes": [{
          "QuoteId": 1,
          "MinPrice": 70.0,
          "Direct": true,
          "OutboundLeg": {
              "CarrierIds": [1047],
              "OriginId": 84892,
              "DestinationId": 65698,
              "DepartureDate": "2017-02-13T00:00:00"
          },
          "QuoteDateTime": "2017-02-01T01:05:00"
      }, {
          "QuoteId": 2,
          "MinPrice": 85.0,
          "Direct": true,
          "InboundLeg": {
              "CarrierIds": [1047],
              "OriginId": 65698,
              "DestinationId": 84892,
              "DepartureDate": "2017-02-13T00:00:00"
          },
          "QuoteDateTime": "2017-02-01T04:23:00"
      }, {
          "QuoteId": 3,
          "MinPrice": 86.0,
          "Direct": true,
          "InboundLeg": {
              "CarrierIds": [1047],
              "OriginId": 65698,
              "DestinationId": 84892,
              "DepartureDate": "2017-02-13T00:00:00"
          },
          "QuoteDateTime": "2017-02-01T01:57:00"
      }, {
          "QuoteId": 4,
          "MinPrice": 164.0,
          "Direct": true,
          "OutboundLeg": {
              "CarrierIds": [1047],
              "OriginId": 84892,
              "DestinationId": 65698,
              "DepartureDate": "2017-02-13T00:00:00"
          },
          "InboundLeg": {
              "CarrierIds": [1047],
              "OriginId": 65698,
              "DestinationId": 84892,
              "DepartureDate": "2017-02-13T00:00:00"
          },
          "QuoteDateTime": "2017-01-30T21:03:00"
      }],
      "Places": [{
          "PlaceId": 65698,
          "IataCode": "LHR",
          "Name": "London Heathrow",
          "Type": "Station",
          "SkyscannerCode": "LHR",
          "CityName": "London",
          "CityId": "LOND",
          "CountryName": "United Kingdom"
      }, {
          "PlaceId": 84892,
          "IataCode": "TXL",
          "Name": "Berlin Tegel",
          "Type": "Station",
          "SkyscannerCode": "TXL",
          "CityName": "Berlin",
          "CityId": "BERL",
          "CountryName": "Germany"
      }],
      "Carriers": [{
          "CarrierId": 838,
          "Name": "Air France"
      }, {
          "CarrierId": 881,
          "Name": "British Airways"
      }, {
          "CarrierId": 1047,
          "Name": "eurowings"
      }, {
          "CarrierId": 1218,
          "Name": "Iberia"
      }, {
          "CarrierId": 1324,
          "Name": "KLM"
      }, {
          "CarrierId": 1368,
          "Name": "Lufthansa"
      }, {
          "CarrierId": 1384,
          "Name": "Swiss"
      }, {
          "CarrierId": 1707,
          "Name": "SAS"
      }, {
          "CarrierId": 1710,
          "Name": "Brussels Airlines"
      }],
      "Currencies": [{
          "Code": "GBP",
          "Symbol": "£",
          "ThousandsSeparator": ",",
          "DecimalSeparator": ".",
          "SymbolOnLeft": true,
          "SpaceBetweenAmountAndSymbol": false,
          "RoundingCoefficient": 0,
          "DecimalDigits": 2
      }]
  }
  </code></pre>