I have the following string:
var arr = "[{'one' : '1'}, {'two' : '2'}]";
How can I pass this string to an object?
I've tried the following but it doesn't seem to work:
arr.split(',');
I have the following string:
var arr = "[{'one' : '1'}, {'two' : '2'}]";
How can I pass this string to an object?
I've tried the following but it doesn't seem to work:
arr.split(',');