Adding xml2json code