I need to compare the value of a property from 2 different jsons to be able to show something on the screen. For example : 1st json:
{
registros: [
{
"paciente": 2,
"problema": {
"nota": "Mano derecha amputada. Antibioticos"
},
{
"paciente": 3,
"problema": {
"nota": "Ecografia de 6ta semana."
}
},
]}
2nd json:
{
pacientes: [
{
"nroPaciente": 2,
"nombre": "Anakin Skywalker",
"edad": 50,
"internado": true
},
{
"nroPaciente": 1,
"nombre": "Emanuel Fernandez",
"edad": 16,
"internado": false
}
]}
I need to compare the nroPaciente property with the other patient and if they are the same show the property note . I just use javascript, I clarify that the jsons are obtained by a fetch and I'm showing other properties with a for, etc. Thanks:)