I'm looking into saving an array to a text file for later access, but i was wonder what way is better to save this array? Its really just an opinion question! I really just want to know what would be the better way to save this as well as why is there a null in there on the first part?
{
"questionbanknames": "Question Bank Name",
"question": [null, {
"question": "This is question 1?",
"type": "manual",
"a": "",
"b": "",
"c": "",
"d": ""
}, {
"question": "This is question 2?",
"type": "multi",
"a": "yes",
"b": "no",
"c": "maybe",
"d": "all of the above"
}]
}
OR
"questionbanknames": "Question Bank Name",
"question[1][question]": "This is question 1?",
"question[1][type]": "manual",
"question[1][a]": "",
"question[1][b]": "",
"question[1][c]": "",
"question[1][d]": "",
"question[2][question]": "This is question 2?",
"question[2][type]": "multi",
"question[2][a]": "yes",
"question[2][b]": "no",
"question[2][c]": "maybe",
"question[2][d]": "all of the above"