implemented xml2json for the api return
cleaned up and added xml2json for api response
merged heads