{"action":"opened","issue":{"url":"https://api.github.com/repos/Lunderberg/lua-bindings/issues/5","labels_url":"https://api.github.com/repos/Lunderberg/lua-bindings/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Lunderberg/lua-bindings/issues/5/comments","events_url":"https://api.github.com/repos/Lunderberg/lua-bindings/issues/5/events","html_url":"https://github.com/Lunderberg/lua-bindings/issues/5","id":60672691,"number":5,"title":"Returning table from C++ function","user":{"login":"Lunderberg","id":3888575,"avatar_url":"https://avatars.githubusercontent.com/u/3888575?v=3","gravatar_id":"","url":"https://api.github.com/users/Lunderberg","html_url":"https://github.com/Lunderberg","followers_url":"https://api.github.com/users/Lunderberg/followers","following_url":"https://api.github.com/users/Lunderberg/following{/other_user}","gists_url":"https://api.github.com/users/Lunderberg/gists{/gist_id}","starred_url":"https://api.github.com/users/Lunderberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lunderberg/subscriptions","organizations_url":"https://api.github.com/users/Lunderberg/orgs","repos_url":"https://api.github.com/users/Lunderberg/repos","events_url":"https://api.github.com/users/Lunderberg/events{/privacy}","received_events_url":"https://api.github.com/users/Lunderberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T15:06:04Z","updated_at":"2015-03-11T15:06:04Z","closed_at":null,"body":"If a C++ function returns either a std::vector<T> or a std::map<std::string, T>, it should be pushed as a table.  If I feel like handling the mixed case of a lua table with both an array part and a hash part, I may make a special type for it."}}