* Cleanup json/xml output of API calls.