Fix MIME type for returning JSON (application/json)