I have one json array like and it's have limited questions.
{
"section_slug": "personal_info",
"questions": [
{
"question_slug":"whats-your-hobbies",
"answers":[
{
"answer_slug":"Cooking",
"answer":"Cooking"
},
]
},
{
"question_slug": "education",
"answers": [
{
"answer_slug": "Masters",
"answer": "Masters"
}
]
},
{
"question_slug": "state",
"answers": [
{
"answer_slug": "Alaska",
"answer": "Alaska"
}
]
},
]
}
I want to need expected outpoot is :
- "section_slug is required",
- "education is required",
- "education answer is required",
- "State is required",
- "State answer is required"
In case user have not added quastion like 'city' So need show error city is required.
Please I need your supports. Thanks.