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\": [ {
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);