Can anybody show me how to retrieve an object from JSON string. I'm stuck anh i really need help. For example i have an JSON string like this
"traits": [
{
"trait_type": "type",
"value": "Male",
"display_type": null,
"max_value": null,
"trait_count": 6039,
"order": null
},
{
"trait_type": "accessory",
"value": "Mohawk",
"display_type": null,
"max_value": null,
"trait_count": 441,
"order": null
},
{
"trait_type": "accessory",
"value": "Smile",
"display_type": null,
"max_value": null,
"trait_count": 238,
"order": null
},
{
"trait_type": "accessory",
"value": "2 attributes",
"display_type": null,
"max_value": null,
"trait_count": 3279,
"order": null
}
],
And i wanna get some object like this
"traits": [
{
"trait_type": "type",
"value": "Male",
},
{
"trait_type": "accessory",
"value": "Mohawk",
},
{
"trait_type": "accessory",
"value": "Smile",
},
{
"trait_type": "accessory",
"value": "2 attributes",
},
],
I hope if anybody can help me or give me some suggestion.