I was trying to parse this JSON string:
{"query": "my schedule today","type": "timeline","title": "Today events:","time":["2015-07-06\n20:30:00"],"summary":["Weekly meeting + Show & Tell (Hangout)"],"description":["Weekly Bullets (20 minutes): "]}
This is a valid JSON (checked on jsonformatter.curiousconcept.com). However, I received erorr:
SyntaxError: Unexpected token
in (file angular.js):
function fromJson(json) {
return isString(json)
? JSON.parse(json)
: json;
}
Anyone has ideas?