parse response from xml to json