Transform xml to json