How to get the value from array within an array in JSON

promotion.date_begin.date + days(random(10,20))

im trying to add the number of days in promotion.date_end field using promotion.date_begin.date + random days number but it keep saying field “promotion” not found, any solution?

share your schema so we can discuss