Just always serve JSON for simplicity (avoid need for content negotiation), and remove debug statements