My current task involves extracting the "correctAnswers" from a specific number.
Let's take a look at this JSON example:
{
"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 currently working on a solution to extract the "correctAnswers" for the number 1, or any random number within the "questions" array.