Adding XML and JSON GET method