Я анализирую вложенный файл Json, в котором есть вложенные объекты и массив, и получаю результат в Map (String, Object).Результат, который я могу получить:
RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [0] .Base.DecimalPlaces RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [0] .Base.AmountBeforeTax RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [0] .EffectiveDate RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.RoomRate [15] .Rates.Rate [1] .RateMode RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [1] .UnitMultiplier RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [1].Base.CurrencyCode RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [1] .Base.DecimalPlaces RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [1] .Base.AmountBeforeToomRatsStaStaS.RoomRate [15] .Rates.Rate [1] .EffectiveDate RoomStays.RoomStay.RoomRates.RoomRate [15] .Rates.Rate [1] .RateTimeUnit RoomStays.RoomStay.RoomRates.RoomRate [15] .AvailabilityStatRasySateS.RoomRate [15] .NumberOfUnits RoomStays.RoomStay.RoomRates.RoomRate [15] .Total.CurrencyCode
Теперь мне нужно знать номер индекса, например, 15 - это индекс RoomStays.RoomStay.RoomRates.RoomRate.Помощь приветствуется.Заранее спасибо.