Added code to generate by year json