I wanted to convert this string `"{a:2, b:4}"` into Object `{a:2, b:4}`.

I tried `JSON.parse("{a:2, b:4}")` and got no result. 

The real data I'm getting is a little complex and can't post here because of company data.

Is there any way in JS to achieve it.