a = "{'sentiments': [['1485925200000', '0.0636363636364']]}"
// typeof(a) returns string
Trying to convert this string to json object in angular using JSON.parse(a). However, I am getting an error.
SyntaxError: Unexpected token ' in JSON at position 1
at JSON.parse (<anonymous>)
"instead of'JSON.parse( a.replace(/'/g, '"') )!', like soa = `{"sentiments": [["1485925200000", "0.0636363636364"]]}