Get the name and the value of every field for an object

I think you can do

getfield.(security, fieldnames(jhal.Security))

or

getfield.(security, fieldnames(typeof(security)))