Switched from xml to json