hii everyone ..
i am working on quiz game and i wants to load data from json file and save different value of different key
to diffrent variables
like
{ "subCat" : "Marvel",
"Questions": {
"Question1": {
FIRST QUESTION HERE
}
"QUESTION 2":{
SECOND QUESTION HERE
}
AND SO ON..
}
};
{ "subCat" : "Movies",
"Questions": {
"Question1": {
FIRST QUESTION HERE
}
"QUESTION 2":{
SECOND QUESTION HERE
}
AND SO ON..
}
};
{ "subCat" : "DC",
"Questions": {
"Question1": {
FIRST QUESTION HERE
}
"QUESTION 2":{
SECOND QUESTION HERE
}
AND SO ON..
}
};
as above example i wants to save subCat KEY to => variable1 and all the data of Questions KEY to => variable2 and for each KEY of subCat to different variables like
marvel to subCatVariable1 & questions of subCat to Questionsvariable 1
movies to subCatVariable2 & questions of subCat to Questionsvariable 2
DC to subCatVariable3 & questions of subCat to Questionsvariable 3