首先我有一个json数据
[{"Test_ID":"6","Question_Text":"What is the length of the train?","Answer_Set_id":"1","Correct_Answer":"4","Correct_Answer_Text":null,Answer_choice_1":"45 km\/hr","Answer_choice_2":"50 km\/hr","Answer_choice_3":"54 km\/hr","Answer_choice_4":"55 km\/hr","Answer_Type":"checkbox"},
{"Test_ID":"6","Question_Text":" The speed of the train is:","Answer_Set_id":"2","Correct_Answer":"2","Answer_choice_1":"45 km\/hr","Answer_choice_2":"50 km\/hr","Answer_choice_3":"54 km\/hr","Answer_choice_4":"55 km\/hr","Answer_Type":"radio"},}
解析答案类型的 json,在同一位置显示复选框或单选按钮。如果 Checkbox 获得在布局中显示 4 复选框,如果单选获得则在同一位置显示 4 单选按钮意味着替换单选按钮上的复选框,反之亦然。请问各位大侠帮帮我怎么办??