Added convert xml to json function