Can JavaScript be used to convert a string such as this:
"Product : Bike , 2005 : $12000,2006 : $13000,2007 : $14000,2008 : $15000"
into a JSON object like the one below:
{
"Product":"Bike",
"2005" : $12000,
"2006" : $13000,
"2007" : $14000,
"2008" : $15000
}