Changed default endpoint to return json