using System.Collections.Generic;
using Newtonsoft.Json.Linq;
public static void Main()
""customerSessionId"": ""0ABAA82A-4307-A913-E172-4D238D901107"",
""numberOfRoomsRequested"": 1,
""moreResultsAvailable"": true,
""cacheKey"": ""-73d4307a:13e174d238d:-10fe"",
""cacheLocation"": ""10.186.168.42:7301"",
""cachedSupplierResponse"": {
""@matchedLocale"": ""true"",
""@matchedCurrency"": ""true"",
""@otherOverheadTime"": ""1"",
""@candidatePreptime"": ""98"",
""@supplierResponseTime"": ""498"",
""@supplierResponseNum"": ""1"",
""@supplierRequestNum"": ""207"",
""@supplierCacheTolerance"": ""NOT_SUPPORTED""
""@activePropertyCount"": ""224"",
""@ubsScore"": ""15815285"",
""name"": ""Larkspur Landing Bellevue - An All-Suite Hotel"",
""address1"": ""15805 Se 37th St"",
""stateProvinceCode"": ""WA"",
""airportCode"": ""SEA"",
""confidenceRating"": 95,
""amenityMask"": 7823362,
""tripAdvisorRating"": 4,
""tripAdvisorReviewCount"": 81,
""tripAdvisorRatingUrl"": ""http://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.gif"",
""locationDescription"": ""Near Bellevue College"",
""shortDescription"": ""<p><b>Location. </b> <br />Located in Bellevue, Larkspur Landing Bellevue - An All-Suite Hotel is in the suburbs and close to Bellevue College, T-Mobile USA Headquarters, and Factoria Mall. Nearby"",
""rateCurrencyCode"": ""GBP"",
""longitude"": -122.13193,
""proximityDistance"": 2.0668056,
""proximityUnit"": ""MI"",
""hotelInDestination"": true,
""thumbNailUrl"": ""/hotels/1000000/130000/127100/127040/127040_14_t.jpg"",
""deepLink"": ""http://travel.ian.com/index.jsp?pageName=hotAvail&cid=55505&hotelID=161395&mode=2&numberOfRooms=1&room-0-adult-total=2&room-0-child-total=0&arrivalMonth=4&arrivalDay=17&departureMonth=4&departureDay=19&showInfo=true&locale=en_US¤cyCode=GBP"",
""RoomRateDetailsList"": {
""roomTypeCode"": 200207592,
""quotedRoomOccupancy"": 2,
""roomDescription"": ""Studio Suite Accessible"",
""propertyAvailable"": true,
""propertyRestricted"": false,
""expediaPropertyId"": 127040,
""@rateChange"": ""false"",
""@priceBreakdown"": ""true"",
""rateKey"": ""adbdfb1a-df03-4577-9970-ed62f4c84a17""
""ChargeableRateInfo"": {
""@surchargeTotal"": ""14.02"",
""@grossProfitOnline"": ""18.82"",
""@grossProfitOffline"": ""11.21"",
""@nightlyRateTotal"": ""103.12"",
""@maxNightlyRate"": ""51.56"",
""@currencyCode"": ""GBP"",
""@commissionableUsdTotal"": ""158.4"",
""@averageRate"": ""51.56"",
""@averageBaseRate"": ""64.45"",
""NightlyRatesPerRoom"": {
""@type"": ""TaxAndServiceFee""
""nonRefundable"": false,
""rateType"": ""MerchantStandard"",
""promoDescription"": ""Sale! Save 20% on this Stay."",
""promoType"": ""Standard"",
""description"": ""Free High-Speed Internet""
JToken token = JToken.Parse(json);
token.SelectToken("HotelList.HotelSummary.RoomRateDetailsList.RoomRateDetails.RateInfos.RateInfo.currentAllotment")
Console.WriteLine("currentAllotment is " + currentAllotment);