I have a dictionary of the form as follows:
dict={"text":10,"textg":31,"textf":23}
I want this to be converted as follows:
newlist=[{
text:"text",
value:10
},
{
text:"textg",
value:31
},
{
text:"textf",
value:23
}
]
Is there any possible way to do it in python or reactjs?