JSON and XML output works