我在这里附上了json响应代码
{
"survey": [
{
"id": "1",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "reh"
}
},
{
"id": "2",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "erh"
}
},
{
"id": "3",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "reh"
}
},
{
"id": "4",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "rswh"
}
},
{
"id": "5",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "hfg"
}
},
{
"id": "6",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "fgh"
}
},
{
"id": "7",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "ff"
}
},
{
"id": "8",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "er"
}
},
{
"id": "9",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "ert"
}
},
{
"id": "10",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "ret"
}
},
{
"id": "11",
"question" : "How old are you",
"option": {
"1": "above 20",
"2": "below 29",
"3": "rg"
}
}
]
}
1必须在列表视图中设置选项..因为选项可能从 3 到 6 动态变化必须为我使用单选列表视图添加选项...这里的问题无法一次检索一个..当用户按下下一个第二个数组值应该返回..就像那样
任何建议请帮助我...这将非常有用