I have the following string which I want to convert to JSON:
'{clientId: "1239268108.1505087088", userId: "0.4744496956388684", "url": "http://boomfix.es/", "pageUrl": "1", "timer": "15", "clickCount": "4", "mouseMax": "", "objective": ""}'
Why can't I use the JSON.parse
method on this string?
Does every JSON element has to be in Quotes for JSON.parse
to work?. So this would be different from the syntax on a Javascript object?