I am trying to convert JSON string to javascript object, but unsuccessfully.
This is my code:
result = "{'image': 'https://google.com/16469374645-11-12-05-27-10-2017.jpg', 'sender': 'Test test123', 'text': 'Test 005', 'expiry': '2016-10-15 01:51:28', 'points': 650, 'color_from': '#8DBCC5', 'color_to': '#13717C'}";
result = JSON.parse(result);
console.log(result);
alert(result);
I have created a fiddle with a demo. https://jsfiddle.net/030u9z9f/1/
It seems like my JSON is not properly formatted, but I am not sure how to adjust it.