Why parseJSON fails when I pass a file? My file is in the variable a and after it I just parse using parseJSON
var a = "/android/contents/img/uploads/img_2A0.png";
var result = jQuery.parseJSON(a);
The error which is giving Chrome is: message: "Unexpected token /"
This case raise using droparea.js.
ais not valid JSON.jQuery.parseJSONdoesn't load data from a URL, it expects the string passed to it to be JSON. I guess you are looking forgetJSON: api.jquery.com/jquery.getjson.