{"action":"created","issue":{"url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/277","repository_url":"https://api.github.com/repos/BohemianCoding/SketchAPI","labels_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/277/comments","events_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/277/events","html_url":"https://github.com/BohemianCoding/SketchAPI/issues/277","id":377823615,"node_id":"MDU6SXNzdWUzNzc4MjM2MTU=","number":277,"title":"Get component JSON info through Sketch Api","user":{"login":"yvanwangl","id":11405052,"node_id":"MDQ6VXNlcjExNDA1MDUy","avatar_url":"https://avatars2.githubusercontent.com/u/11405052?v=4","gravatar_id":"","url":"https://api.github.com/users/yvanwangl","html_url":"https://github.com/yvanwangl","followers_url":"https://api.github.com/users/yvanwangl/followers","following_url":"https://api.github.com/users/yvanwangl/following{/other_user}","gists_url":"https://api.github.com/users/yvanwangl/gists{/gist_id}","starred_url":"https://api.github.com/users/yvanwangl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvanwangl/subscriptions","organizations_url":"https://api.github.com/users/yvanwangl/orgs","repos_url":"https://api.github.com/users/yvanwangl/repos","events_url":"https://api.github.com/users/yvanwangl/events{/privacy}","received_events_url":"https://api.github.com/users/yvanwangl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-06T12:23:58Z","updated_at":"2018-11-06T13:38:08Z","closed_at":null,"author_association":"NONE","body":"I try to get Page JSON info through Sketch api like this:\r\n```\r\nexport const exportCode = (context) => {\r\n  var document = sketch.getSelectedDocument();\r\n  const wrapPage = sketch.fromNative(document.selectedPage);\r\n  console.log(wrapPage.toJSON());\r\n};\r\n```\r\nI got an error:\r\n![b429c625-70df-4520-986a-8810ccb7901e](https://user-images.githubusercontent.com/11405052/48064162-06669c00-e202-11e8-80a9-4a2a7d0650a0.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/comments/436255116","html_url":"https://github.com/BohemianCoding/SketchAPI/issues/277#issuecomment-436255116","issue_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/277","id":436255116,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjI1NTExNg==","user":{"login":"yvanwangl","id":11405052,"node_id":"MDQ6VXNlcjExNDA1MDUy","avatar_url":"https://avatars2.githubusercontent.com/u/11405052?v=4","gravatar_id":"","url":"https://api.github.com/users/yvanwangl","html_url":"https://github.com/yvanwangl","followers_url":"https://api.github.com/users/yvanwangl/followers","following_url":"https://api.github.com/users/yvanwangl/following{/other_user}","gists_url":"https://api.github.com/users/yvanwangl/gists{/gist_id}","starred_url":"https://api.github.com/users/yvanwangl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvanwangl/subscriptions","organizations_url":"https://api.github.com/users/yvanwangl/orgs","repos_url":"https://api.github.com/users/yvanwangl/repos","events_url":"https://api.github.com/users/yvanwangl/events{/privacy}","received_events_url":"https://api.github.com/users/yvanwangl/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T13:38:08Z","updated_at":"2018-11-06T13:38:08Z","author_association":"NONE","body":"@mathieudutour Thanks for you apply :) , my sketch version is v 52.\r\nI have make an very sample sketch file use Artboard \\ Rectangle and Oval."}}
{"actor":{"display_login":"yvanwangl"}}