I am trying to get the "correctAnswers" from a number.
Here a is sample of the JSON:
{
"questions": [
{
"number": 3,
"question": "☀️ ➕ = ?",
"answers": [
"sunflower",
"BIRTHDAY",
"iPhone",
"MOON CAKE"
],
"correctAnswers": [
"sunflower"
],
"random": true,
"timeLimit": "24"
},
{
"number": 1,
"question": "⭐️ ➕ =❓ ",
"answers": [
"STAR FISH",
"iPhone",
"MOON CAKE",
"HOT DOG"
],
"correctAnswers": [
"STAR FISH"
],
"random": true,
"timeLimit": "20"
},
{
"number": 7,
"question": " ➕ ☎ = ",
"answers": [
"SUNGLASSES",
"SUNFLOWER",
"HOUSEPAINT",
"IPHONE"
],
"correctAnswers": [
"IPHONE"
],
"random": true,
"timeLimit": 15
},
]
}
I am trying to find "number":1, OR a random number inside of the "questions" and then find the "correctAnswers" from that number.