I have a .json
file that is 50MB and 84 000 lines. I am using the code below to load it into the variable 2002data
. At first I was waiting for a while as expected but when I added an alert before $.get
nothing was coming up. Am I doing something wrong or is this normal?
alert('starting 2002_results.json'); // This alert isn't showing up...
$.get('2002_results.json', function(2002data));
alert('2002 done');
Just in case this makes a difference, here is the first 2 and last 2 lines of the .json
file.
{"2002Results": [
{"st_is_str":"01006000102","parm_desc":"ALKALINITY, TOTAL"},
{"st_id":{"station_id":"18349002002","name":"Madawaska River","location":"Madawaska Blvd, Arnprior","first_year":1966,"last_year":2010,"total_years":45,"missed_years":0,"long_coord":-76.34968485,"lat_coord":-76.34968485},"parm_desc":"ZINC, UNFILTERED TOTAL"},
]}
..and this goes on for a while.
If there is something more efficient I can use what is it? (Just a name would be good, I'll figure the rest out)