Hi Guys,
I am currently creating a quiz game and I want the questions to be pulled out of the JSON document automatically. Using the Load-JSON plugin I was able to load the text up no problems but i was wondering if anyone knew how to tell the JSON which of the answers are correct?
Below is my currently JSON text with the first set of numbers being the question number, then the question (Q1) and then the set of answers.
{
"1": ["Q1", "1", "2", "3", "4"],
"2": ["Q2", "1", "2", "3", "4"],
"3": ["Q3", "1", "2", "3", "4"],
"4": ["Q4", "1", "2", "3", "4"]
}
[/code:19nxcgzt]
From reading forums and guides, it seems that I am suppose to add ':true' after the correct answer but everytime I try that I just get an 'Nothing Found' Message.
Your help will be greatly appreciated as I am only starting to learn about ARRAY & JSON