We want to remove duplicate node from JSON. This node will be removed if trait_type values are same
Here is JSON
[
{
"trait_type": "Background",
"value": "Yellow"
},
{
"trait_type": "A",
"value": "None"
},
{
"trait_type": "B",
"value": "Male Body Grey Color"
},
{
"trait_type": "A",
"value": "Outfit"
}
]
Final JSON should like this.
[
{
"trait_type": "Background",
"value": "Yellow"
},
{
"trait_type": "A",
"value": "None"
},
{
"trait_type": "B",
"value": "Male Body Grey Color"
}
]
Please help
Thanks