{"action":"closed","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/263","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/263/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/263/events","html_url":"https://github.com/sendgrid/sendgrid-nodejs/issues/263","id":168836220,"number":263,"title":"Is it possible to leave blank 'Cc' and 'Bcc'?","user":{"login":"ronakvbhatt07","id":7066795,"avatar_url":"https://avatars.githubusercontent.com/u/7066795?v=3","gravatar_id":"","url":"https://api.github.com/users/ronakvbhatt07","html_url":"https://github.com/ronakvbhatt07","followers_url":"https://api.github.com/users/ronakvbhatt07/followers","following_url":"https://api.github.com/users/ronakvbhatt07/following{/other_user}","gists_url":"https://api.github.com/users/ronakvbhatt07/gists{/gist_id}","starred_url":"https://api.github.com/users/ronakvbhatt07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronakvbhatt07/subscriptions","organizations_url":"https://api.github.com/users/ronakvbhatt07/orgs","repos_url":"https://api.github.com/users/ronakvbhatt07/repos","events_url":"https://api.github.com/users/ronakvbhatt07/events{/privacy}","received_events_url":"https://api.github.com/users/ronakvbhatt07/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/type:%20question","name":"type: question","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-02T09:14:21Z","updated_at":"2016-08-04T17:21:21Z","closed_at":"2016-08-04T17:21:21Z","body":"I am working on a sending mail option where i am using Code of sending mail _**Without mail helper class**_. Now the thing is i am binding _to_,_cc_ and _bcc_ dynamically. There might be possibilities that need to pass blank _cc_ and _bcc_ as well. So in that case what should i do to prevent generating error?  \r\n\r\n    request.body = {\r\n      \"personalizations\": [\r\n        {\r\n          \"to\": [\r\n           {\r\n              \"email\": \"test@example.com\"\r\n            }\r\n          ],\r\n          \"cc\":[],\r\n          \"bcc\":[]\r\n          \"subject\": \"Hello World from the SendGrid Node.js Library!\"\r\n        }\r\n      ],\r\n      \"from\": {\r\n        \"email\": \"test@example.com\"\r\n      },\r\n      \"content\": [\r\n       {\r\n          \"type\": \"text/plain\",\r\n          \"value\": \"Hello, Email!\"\r\n       }\r\n     ]\r\n    };\r\n"}}
{"actor":{"display_login":"thinkingserious"}}