Add JSON and XML render functions