here is my input:
where input may receive more data like 'e:5'
var input = {a:2,b:3,c:2,d:1};
I want to convert this input into below output:
var output = [{name="a",id="2"},
{name="b",id="3"},
{name="c",id="2"},
{name="d",id="1"}];
thanks in advance.