i have an object like given below i wanted to formate like
variation": [
{
"Color": "Red",
"Size": "XS",
"din": "10190537",
"product_id": 55,
"name": {
"0": "Color",
"1": "Size"
},
"value": {
"0": "Red",
"1": "XS"
}
}
],
Expected Object like given
`variation": [
{
"Color": "Red",
"Size": "XS",
"din": "10190537",
"product_id": 55,
data: [
{
name:Color,
value:Red
}
{
name:Size,
value:XS
}
]
},
}
]`
i am not able to found proper solution please help me
thanks..........
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire