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