json file
Help parse this json . Specifically, you need access to the keys controlworks , courseprojects and so on. I can not fully understand the structure. Please pay attention to the fact that the arrays of 2013-2014, 2014-2015 and so on. not static Ie from the server they can come either 4 or 1, and so on. Below is the code with which I could only dynamically display the name of the arrays '2013-2014' and so on.
var rnpFilters = JSON.parse(rnpFiltersString); $.each( rnpFilters.rnp, function(key, val) { console.log(key); // 2013-2014, 2014-2015, 2015-2016 }); 
for (i.........i < rnpFilters.rnp[key].length....- Alex Shimansky$.each( rnpFilters.rnp, function(key, val) { nextTab = $('#tabs li').length + 1; //create the tab $('<li><a href="#tab'+nextTab+'" data-toggle="tab">'+key+'</a></li>').appendTo('#tabs'); });- Mike Kaharlykskiy