Update xmlToJson to generate data differently if only one year