How can i access this json structure given below?
{
   "question":{
      "119380":{
         "email":{
            "-L8o-zzRRTOJQjI4BQZ0":"abc@gmail.com",
            "-L8odhdW2xAnayboUb8h":"abc@gmail.com",
            "-L8ouI_wt8hb_R0GvXZ5":"abc@gmail.com",
            "-L8p8b03ZpoKUQiYU_69":"abc@gmail.com"
         }
      },
      "123541":{
         "email":{
            "-L8whdSxfPa1DGXwtTuD":"abc@gmail.com"
         }
      },
   }
}
I am trying in the following way
 exports.sendspamalertNotification = functions.database
.ref("spam/question").onWrite(event => {
  const original = event.data.val();
  console.log(event.data.val());
Everything is printing in console but how can i access every question_id (numeric string) and email under that question_id (numeric string)?
Actually i m new to this so please sorry if its silly question !
Please provide some solution !
 
     
    