parseJSON(file {String} or file {Object})

parseJSON(file {String} or file {Object})
Completely resets the JSON session for TILE and either performs an AJAX operation to retrieve JSON from the URL passed in String file, or loads data from an Object

Takes:

file {String}

URL to a script or JSON file (.html, .php, .json)

OR:

file {Object}

JSON object to load (JSON format – see www.jsonlint.com to test your JSON)