I\'m trying to parse a JSON file located on my computer. I want to parse it. The JSON file has this structure:
{ \"sites\": { \"site\": [ {
I don't think you need to parse the json. It will automatically parse the json since you are using $.getJSON().
getJSON will parse it for you.
getJSON
Just remove the var obj = $.parseJSON(json); line (since that will stringify the object and try to parse it as JSON (which it won't be)).
var obj = $.parseJSON(json);