{"action":"created","issue":{"url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/3","labels_url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/3/comments","events_url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/3/events","html_url":"https://github.com/mikaelbr/node-osascript/pull/3","id":115419229,"number":3,"title":"Add flags to make it possible to change return styles from osascript","user":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T02:07:43Z","updated_at":"2015-11-11T08:33:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mikaelbr/node-osascript/pulls/3","html_url":"https://github.com/mikaelbr/node-osascript/pull/3","diff_url":"https://github.com/mikaelbr/node-osascript/pull/3.diff","patch_url":"https://github.com/mikaelbr/node-osascript/pull/3.patch"},"body":"Makes it possible to return a string representation of an JavaScript object from JXA back in the node.js world:\r\n\r\n```js\r\n// Default return\r\nosascript('(function(){return [\"foo\",5, {foo: \"barz\"}]})()', function (data) {\r\n  console.log(data); // foo, 5, foo:barz\r\n});\r\n\r\n// JSON parsable return\r\nosascript('(function(){return [\"foo\",5, {foo: \"barz\"}]})()', {flags: ['-s', 's']}, function (data) {\r\n  console.log(data); // [\"foo\", 5, {\"foo\":\"barz\"}]\r\n});\r\n```\r\n\r\nSee `examples/js/return.js` and [osascript man page](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/osascript.1.html)\r\n\r\n----\r\n\r\nI could squash commits if you prefer a shorter history :octocat: "},"comment":{"url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/comments/155703124","html_url":"https://github.com/mikaelbr/node-osascript/pull/3#issuecomment-155703124","issue_url":"https://api.github.com/repos/mikaelbr/node-osascript/issues/3","id":155703124,"user":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T08:33:10Z","updated_at":"2015-11-11T08:33:10Z","body":"Did you had a chance to review the changes? \r\n\r\nReason for my reminder.\r\nI need this changes in my [itunes cli](https://github.com/mischah/itunes-remote) and referencing my fork for now in my [package.json](https://github.com/mischah/itunes-remote/blob/master/package.json#L43). But I would like to get rid of this ;)"}}