Best way to convert string to array of object in javascript?

Viewed 123165

I want to convert below string to an array in javascript.

{a:12, b:c, foo:bar}

How do I convert this string into array of objects? Any cool idea?

6 Answers
Related