{"action":"opened","issue":{"url":"https://api.github.com/repos/qeesung/rocketchat-node/issues/76","repository_url":"https://api.github.com/repos/qeesung/rocketchat-node","labels_url":"https://api.github.com/repos/qeesung/rocketchat-node/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/qeesung/rocketchat-node/issues/76/comments","events_url":"https://api.github.com/repos/qeesung/rocketchat-node/issues/76/events","html_url":"https://github.com/qeesung/rocketchat-node/issues/76","id":318393472,"number":76,"title":"Error creating a user RequestError: Invalid JSON for Custom Fields [error-invalid-customfield-json]","user":{"login":"msouidi309","id":12696184,"avatar_url":"https://avatars0.githubusercontent.com/u/12696184?v=4","gravatar_id":"","url":"https://api.github.com/users/msouidi309","html_url":"https://github.com/msouidi309","followers_url":"https://api.github.com/users/msouidi309/followers","following_url":"https://api.github.com/users/msouidi309/following{/other_user}","gists_url":"https://api.github.com/users/msouidi309/gists{/gist_id}","starred_url":"https://api.github.com/users/msouidi309/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msouidi309/subscriptions","organizations_url":"https://api.github.com/users/msouidi309/orgs","repos_url":"https://api.github.com/users/msouidi309/repos","events_url":"https://api.github.com/users/msouidi309/events{/privacy}","received_events_url":"https://api.github.com/users/msouidi309/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T12:36:27Z","updated_at":"2018-04-27T12:36:27Z","closed_at":null,"author_association":"NONE","body":"Hi, i'm trying to create a user and set a custom field, like the twitter account or something like that but it doesn't seems to work. Any problem in my json ?\r\nHere is my variable : \r\n\r\nvar userToAdd = {\r\n\t\t\"name\": \"myName\",\r\n\t\t\"email\": \"myEmail\",\r\n\t\t\"password\": \"myPassword\",\r\n\t\t\"username\": \"myUsername\",\r\n\t\t\"sendWelcomeEmail\": false,\r\n\t\t\"joinDefaultChannels\": false,\r\n\t\t\"verified\":false,\r\n\t\t\"requirePasswordChange\":false,\r\n\t\t\"roles\":[\"user\"],\r\n\t\t\"customFields\": { \r\n\t\t\t\"twitter\": \"@myTwitter\"\r\n\t\t}\r\n\t}"}}
{"actor":{"display_login":"msouidi309"}}