I'm using PYTHON :
I'm trying to convert the following array of strings:
tags_list = ["one", "two", "three"]
to an array of JSON array of objects with a specific key as follows:
"tags": [
{
"name": "one"
},
{
"name": "two"
},
{
"name": "three"
}
]
I found several answers for JavaScript not python
Can any body help please
Thanks in-advance
Almost the same as @sudden_appearance mentioned, but I'd add :
when you log it to the console, for a better format :)