I'm receiving a stringified Array of Objects in JS:
"[{version:07/18,test:true}]"
How can I get this back to an Array I can work with in JS? I've tried JSON.parse but this don't worked:
var abc = "[{version:07/18,test:true}]";
console.log(JSON.parse(abc));
Thanks for helping me!
JSON.parsedidn't work because that isn't valid JSON. I'd say the issue worth solving is whatever is sending you data in such an awful format :)'[{"version":"07/18","test":true}]'.evalthis (boo hiss), it's still not right; e.g.{ version: 07/18 }will produce a giant decimal.