converted xml rendering to json rendering