added xml2json dependency injection.