I have the following code and I want to access the json of the outside of the initial call.
var crimes = $.getJSON('url');
console.log(crimes);
the console logs an object with a "responseJSON" element, but I can't access it. The code:
console.log(crimes[responseJSON]);
returns an error saying respponseJSON is undefined. I need to cycle through this large dataset in another for look so I only want to call it once rather than every time in the loop that comes after. How do I access the responseJSON object?