I have created a JSON object which I want to display in a div: question and number of selections-format.
How to loop i.e. iterate this particular JSON object array in div?
[
{
"question": "php Developer ?",
"type": "checkbox",
"mandatory": "yes",
"answer": [
"a",
"b",
"c",
"d"
],
"answerss": [
"a",
"b",
"c",
"d"
]
},
{
"question": "1+1",
"type": "radio",
"mandatory": "no",
"answer": [
"1",
"2",
"3",
"4"
],
"answerss": [
"1",
"2",
"3",
"4"
]
}
]
like
Question
answer 1
answer 2
answer 3
answer 4