Forum Discussion
acesario
5 years agoContributor II
@cjhoward18 interestingly, when i get data where the node does not exist (never for date of birth or name, but some other data elements) the .getfirst fails, even when using a hasOwnProperty. I ended up going back to my original pathing, with the following syntax.
$.hasOwnProperty(“jsonPath($, ‘$Student[0].Student_Data[0].Student_Person_Data[0].Personal_Profile_Data[0].Gender_Reference.ID.Gender_Code’)”) ? jsonPath($, ‘$Student[0].Student_Data[0].Student_Person_Data[0].Personal_Profile_Data[0].Gender_Reference.ID.Gender_Code’): ‘-’