I am trying to parse a string into an object. I have looked at the jQueryparseJSON documentation at the following link I've also included the jquery library so I know it's not that.
This is my code so far
var str = "{'val1': 1, 'val2': 2, 'val3': 3}";
var obj = jQueryparseJSON( str );
alert(obj.val1);
In Firebug I am getting the following errors:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I know the solution is more than likely very simple, but I have been repeatedly overlooking it.