I want to access the property nombreprofesional
, noting that I do not know what the property is called. I want to avoid doing myVar.errors["nombreprofesional"]
. How would he do it?
var myVar={
"errors": {
"nombreprofesional": [
"El contenido ingresado en nombreprofesional es inválido."
]
}
}