changing from xml to json