I created an online question/quiz system and am looking to change over the currently hand-coded json data for the questions to strapi so that it can be managed/edited a bit more easily. The way I handle the data for questions at the moment doesn’t seem to work in strapi and I wanted to make sure that I’m not missing something. The system has question categories, and each category has multiple questions. Think of it like a Jeopardy board where each column is a topic, and there are multiple questions in each column. Currently my JSON looks like this:
"questions": [
[ //one array per category
{
"text":"This is where the questions text would go for the first question of the first category",
"answers": [
"Answer one",
"Answer two",
"Answer three",
"Answer four"
],
correctAnswer: 1,
"feedback":"This is a message to the user after they guess the answer"
},
"text":"This is where the questions text would go for the second question",
"answers": [
"Answer one",
"Answer two",
"Answer three",
"Answer four"
],
correctAnswer: 1,
"feedback":"This is a message to the user after they guess the answer"
},
//... there's one entry for each question within the category
],
[
//repeat for each category
Because the “answers” object is an array, it seems like I would need to be able to triple-nest “components” to be able to achieve that, however that doesn’t seem possible in strapi right now. Is there some other way to go about doing this (short of re-engineering all of my code that parses this so that it can be in a different format)?