script to convert xml parses into json