{"action":"opened","issue":{"url":"https://api.github.com/repos/opencomponents/oc-client-browser/issues/28","repository_url":"https://api.github.com/repos/opencomponents/oc-client-browser","labels_url":"https://api.github.com/repos/opencomponents/oc-client-browser/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/opencomponents/oc-client-browser/issues/28/comments","events_url":"https://api.github.com/repos/opencomponents/oc-client-browser/issues/28/events","html_url":"https://github.com/opencomponents/oc-client-browser/issues/28","id":281093112,"number":28,"title":"empty arrays coming back as undefined","user":{"login":"dipunm","id":5099980,"avatar_url":"https://avatars3.githubusercontent.com/u/5099980?v=4","gravatar_id":"","url":"https://api.github.com/users/dipunm","html_url":"https://github.com/dipunm","followers_url":"https://api.github.com/users/dipunm/followers","following_url":"https://api.github.com/users/dipunm/following{/other_user}","gists_url":"https://api.github.com/users/dipunm/gists{/gist_id}","starred_url":"https://api.github.com/users/dipunm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dipunm/subscriptions","organizations_url":"https://api.github.com/users/dipunm/orgs","repos_url":"https://api.github.com/users/dipunm/repos","events_url":"https://api.github.com/users/dipunm/events{/privacy}","received_events_url":"https://api.github.com/users/dipunm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-11T17:04:36Z","updated_at":"2017-12-11T17:04:36Z","closed_at":null,"author_association":"NONE","body":"Since the GetData method translates JSON to key-value pairs when posting to the OC server, it seems that there are some details missing.\r\n\r\nan object such as: \r\n```\r\n{ people: [], animals: ['cat', 'dog'] .... }\r\n```\r\nis translated to something like:\r\n```\r\ndata.animals[] = 'cat'\r\ndata.animals[] = 'dog'\r\n```\r\n\r\nNotice that there are no entries for people because there are no values in that array.\r\nWhen serialised back to JSON, the people property is undefined. This can be handled by the client, but it is not an ideal side effect."}}
{"actor":{"display_login":"dipunm"}}