I'm dealing with a test.json file that contains a jsonArray
[{
"EMAIL": "email_1",
"FIRST_NAME": "Daniel"
},
[{
"EMAIL": "email_2",
"FIRST_NAME": "John"
}]
]
I'm trying to figure out how to use cypress
cy.readFile('path_to_json/test.json')
in order to extract each element from this jsonArray.
For example:
How can I retrieve email_2
and John
Any assistance on this matter would be highly appreciated.