The format of my Array is as follows:-
questionValue = {
others: [{
inputValue: [{
FormTypeValueArrayValue: [
{
form_type_value: "a"
}, {
form_type_value: "b"
}, {
form_type_value: "c"
}, {
form_type_value: "d"
}
]
}]
},
{
inputValue: [{
FormTypeValueArrayValue: [
{
form_type_value: "a"
}, {
form_type_value: "b"
}, {
form_type_value: "c"
}, {
form_type_value: "d"
}
]
}]
}
]
}
However, the required format should be like this: -
questionLevel = {
others: [{
question: "",
form_type_value: "a,b,c"
},
{
question: "",
form_type_value: "d,e,f"
}],
}
I have an array that repeats, so in each array I need the form_type_value as a simple string but within the corresponding array.