โ12-13-2020 07:15 PM
Hello experts,
Can you help me on converting array to object.
Input :-
{
โabcโ: [
{
โex_1_filed_nameโ: โaโ,
โex_1_filed_Valueโ: โNโ
},
{
โex_1_filed_nameโ: โbโ,
โex_1_filed_valueโ: โYโ
},
[
{
โex_1_filed_nameโ: โcโ,
โex_1_filed_valueโ: โdโ,
โvaluidโ: โcโ
},
{
โex_1_filed_nameโ: โcโ,
โex_1_filed_valueโ: โeโ,
โvalueโ: โcโ
}
],
[
],
[
]
]
}
Expected Output :-
{
โabcโ: [
{
โex_1_filed_nameโ: โaโ,
โex_1_filed_Valueโ: โNโ
},
{
โex_1_filed_nameโ: โbโ,
โex_1_filed_valueโ: โYโ
},
{
"ex_1_filed_name": "c",
"ex_1_filed_value": "d",
"valuid": "c"
},
{
"ex_1_filed_name": "c",
"ex_1_filed_value": "e",
"value": "c"
}
]
}
โ12-14-2020 12:57 AM