Code:
var jsonTest = {};
var testjson = ["xxxx.jpg","xxx.jpg","xxx.jpg"];
jsonTest = JSON.parse(testjson);
Error message:
Unable to parse JSON string.
However, when I test this in a JSON validator, it tells me that it is correct JSON.
Code:
var jsonTest = {};
var testjson = ["xxxx.jpg","xxx.jpg","xxx.jpg"];
jsonTest = JSON.parse(testjson);
Error message:
Unable to parse JSON string.
However, when I test this in a JSON validator, it tells me that it is correct JSON.