У меня есть json, который должен декодировать и отображать в формате flipview или скользящем формате. В моем json есть информация в том же разделе (с тем же идентификатором question_id), которая должна отображаться на одной странице во флипвью.
Проблема в том, что они отображаются по-разному или независимо на разных страницах, но я хочу, чтобы те, у кого одинаковый идентификатор, отображались вместе на одной странице
{
"total_questions": 3,
"as_id": "01401d9ec09a54b1db426462399c22f5",
"as_type": "assessment",
"as_title": "Structured test",
"as_no_sec_a": "3",
"as_no_sec_b": "0",
"duration": "00:20",
"subject": "11eaa833d04bde3362fa3ff6d7a96188",
"term": "84d2b094491c900cc455fe47709a5833",
"class": "ab904f3e0be607d7c29612a89b59d3e8",
"questions": [
{
"question_section": "b",
"question_id": "55f0495109febf1d55f058a6d882a2b8",
"question_type": "structured",
"question_form": "short",
"question_image": "",
"question": "<p><span style=\"font-family:Lato;font-size:22px;\">Friction</span></p>",
"question_instruction": "",
"sections": [
{
"section_id": "2d15cc79ecd65beee2ab2bc74110fa12",
"question_id": "55f0495109febf1d55f058a6d882a2b8",
"section_type": "structured",
"section_sub_type": "long",
"section_question": "<p><span style=\"font-family:Lato;font-size:22px;\">What is friction</span></p>",
"section_image": "",
"section_instruction": "<p><span style=\"font-family:Lato;font-size:22px;\">Answer</span></p>"
}
]
},
{
"question_section": "a",
"question_id": "2df3c9d9b5d9d85dd31ae39ff2aeda4b",
"question_type": "structured",
"question_form": "long",
"question_image": "",
"question": "<p><span style=\"font-family:Lato;font-size:22px;\">What is the importance of including calcium in chicken feed?</span></p>",
"question_instruction": "<p><span style=\"font-family:Lato;font-size:22px;\">type your answer below</span></p>"
},
{
"question_section": "a",
"question_id": "1d02f11bbfb6741edb345b66b8fb147d",
"question_type": "structured",
"question_form": "short",
"question_image": "",
"question": "<p><span style=\"font-size:22px;font-family:Lato;\">Give any one example of a root tuber</span></p>",
"question_instruction": "<p><span style=\"font-size:22px;\">Type your answer below</span></p>"
},
{
"question_section": "b",
"question_id": "82a3ecbf3cbfebd30d9dfe17a0f3354c",
"question_type": "structured",
"question_form": "short",
"question_image": "",
"question": "<p><span style=\"font-family:Lato;font-size:22px;\">Gravity as a force</span></p>",
"question_instruction": "",
"sections": [
{
"section_id": "b08b9467da3d21820ec223d46e1ec780",
"question_id": "82a3ecbf3cbfebd30d9dfe17a0f3354c",
"section_type": "structured",
"section_sub_type": "long",
"section_question": "<p><span style=\"font-family:Lato;font-size:22px;\">Why is gravity very important</span></p>",
"section_image": "",
"section_instruction": "<p>Give what its use is</p>"
},
{
"section_id": "85e9d5ad8e41863825651a110b901744",
"question_id": "82a3ecbf3cbfebd30d9dfe17a0f3354c",
"section_type": "structured",
"section_sub_type": "",
"section_question": "<p><span style=\"font-family:Lato;font-size:22px;\">Where does gravity not function</span></p>",
"section_image": "",
"section_instruction": "<p><span style=\"font-family:Lato;font-size:22px;\">Give where it does not</span></p>"
}
]
}
],
"success": 1,
"title": "Successful",
"message": "Questions fetched."
}
Я использую Newtonsoft. Json для декодирования
Ниже приведены изображения того, как мне нужно, чтобы моя информация отображалась в одном флипвью. Они расположены в соответствии с переворотами или страницами в перевернутом виде
Изображение первого переворота
Изображение второго переворота
Изображение третьего сальто
Изображение четвертого сальто