Converted xml to modified array to json