{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42","id":72069215,"html_url":"https://github.com/perfectsense/brightspot-styleguide/pull/42","diff_url":"https://github.com/perfectsense/brightspot-styleguide/pull/42.diff","patch_url":"https://github.com/perfectsense/brightspot-styleguide/pull/42.patch","issue_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/42","number":42,"state":"open","locked":false,"title":"Add support for rendering JSON views","user":{"login":"BryanMorgan","id":479339,"avatar_url":"https://avatars.githubusercontent.com/u/479339?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanMorgan","html_url":"https://github.com/BryanMorgan","followers_url":"https://api.github.com/users/BryanMorgan/followers","following_url":"https://api.github.com/users/BryanMorgan/following{/other_user}","gists_url":"https://api.github.com/users/BryanMorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanMorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanMorgan/subscriptions","organizations_url":"https://api.github.com/users/BryanMorgan/orgs","repos_url":"https://api.github.com/users/BryanMorgan/repos","events_url":"https://api.github.com/users/BryanMorgan/events{/privacy}","received_events_url":"https://api.github.com/users/BryanMorgan/received_events","type":"User","site_admin":false},"body":"Add a new JSON template format with a key of `_view` which denotes the path for the `View` interface. \r\n\r\nGenerated `_view` classes have a `JsonView` annotation (instead of `HandlebarsTemplate`) which renders using `JsonViewRenderer`.\r\n\r\nThe styleguide will render the output of a `_view` template as a JSON string in a simple HTML template supplied in the `example-json.hbs` handlebars template.\r\n\r\nAny JSON file added to the `styleguide/_json` directory will be shown at the bottom of the left rail so all the JSON rendering is last and isolated.\r\n\r\nExample:\r\n```{\r\n    \"_view\": \"/app/VideoPlaylist\",\r\n\r\n    \"text\": \"{{words(4)}}\",\r\n    \"image\": \"{{image(612, 380)}}\",\r\n    \"videos\": [{\r\n        \"_dataUrl\": \"/block/promo/video.json\",\r\n        \"_repeat\": 3\r\n    }]\r\n}```\r\n\r\nAnd the view interface would look like this:\r\n\r\n```@ViewInterface\r\n@JsonView\r\npublic interface VideoPlaylistView {```","created_at":"2016-05-31T19:08:55Z","updated_at":"2016-05-31T19:08:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42/commits","review_comments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42/comments","review_comment_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/42/comments","statuses_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/statuses/6f72f99fb9276924ea5bcefc2411e112a683481e","head":{"label":"perfectsense:feature/json-views","ref":"feature/json-views","sha":"6f72f99fb9276924ea5bcefc2411e112a683481e","user":{"login":"perfectsense","id":260618,"avatar_url":"https://avatars.githubusercontent.com/u/260618?v=3","gravatar_id":"","url":"https://api.github.com/users/perfectsense","html_url":"https://github.com/perfectsense","followers_url":"https://api.github.com/users/perfectsense/followers","following_url":"https://api.github.com/users/perfectsense/following{/other_user}","gists_url":"https://api.github.com/users/perfectsense/gists{/gist_id}","starred_url":"https://api.github.com/users/perfectsense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfectsense/subscriptions","organizations_url":"https://api.github.com/users/perfectsense/orgs","repos_url":"https://api.github.com/users/perfectsense/repos","events_url":"https://api.github.com/users/perfectsense/events{/privacy}","received_events_url":"https://api.github.com/users/perfectsense/received_events","type":"Organization","site_admin":false},"repo":{"id":45073972,"name":"brightspot-styleguide","full_name":"perfectsense/brightspot-styleguide","owner":{"login":"perfectsense","id":260618,"avatar_url":"https://avatars.githubusercontent.com/u/260618?v=3","gravatar_id":"","url":"https://api.github.com/users/perfectsense","html_url":"https://github.com/perfectsense","followers_url":"https://api.github.com/users/perfectsense/followers","following_url":"https://api.github.com/users/perfectsense/following{/other_user}","gists_url":"https://api.github.com/users/perfectsense/gists{/gist_id}","starred_url":"https://api.github.com/users/perfectsense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfectsense/subscriptions","organizations_url":"https://api.github.com/users/perfectsense/orgs","repos_url":"https://api.github.com/users/perfectsense/repos","events_url":"https://api.github.com/users/perfectsense/events{/privacy}","received_events_url":"https://api.github.com/users/perfectsense/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/perfectsense/brightspot-styleguide","description":"","fork":false,"url":"https://api.github.com/repos/perfectsense/brightspot-styleguide","forks_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/forks","keys_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/teams","hooks_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/hooks","issue_events_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/events{/number}","events_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/events","assignees_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/assignees{/user}","branches_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/branches{/branch}","tags_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/tags","blobs_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/refs{/sha}","trees_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/statuses/{sha}","languages_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/languages","stargazers_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/stargazers","contributors_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/contributors","subscribers_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/subscribers","subscription_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/subscription","commits_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/commits{/sha}","git_commits_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/commits{/sha}","comments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/comments{/number}","issue_comment_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/comments{/number}","contents_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/contents/{+path}","compare_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/merges","archive_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/downloads","issues_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues{/number}","pulls_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls{/number}","milestones_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/milestones{/number}","notifications_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/labels{/name}","releases_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/releases{/id}","deployments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/deployments","created_at":"2015-10-27T22:27:33Z","updated_at":"2016-01-12T18:37:45Z","pushed_at":"2016-05-31T18:58:10Z","git_url":"git://github.com/perfectsense/brightspot-styleguide.git","ssh_url":"git@github.com:perfectsense/brightspot-styleguide.git","clone_url":"https://github.com/perfectsense/brightspot-styleguide.git","svn_url":"https://github.com/perfectsense/brightspot-styleguide","homepage":null,"size":298,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"perfectsense:master","ref":"master","sha":"d41c72e37cf086a90b82357719455aa9ae5f7ad5","user":{"login":"perfectsense","id":260618,"avatar_url":"https://avatars.githubusercontent.com/u/260618?v=3","gravatar_id":"","url":"https://api.github.com/users/perfectsense","html_url":"https://github.com/perfectsense","followers_url":"https://api.github.com/users/perfectsense/followers","following_url":"https://api.github.com/users/perfectsense/following{/other_user}","gists_url":"https://api.github.com/users/perfectsense/gists{/gist_id}","starred_url":"https://api.github.com/users/perfectsense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfectsense/subscriptions","organizations_url":"https://api.github.com/users/perfectsense/orgs","repos_url":"https://api.github.com/users/perfectsense/repos","events_url":"https://api.github.com/users/perfectsense/events{/privacy}","received_events_url":"https://api.github.com/users/perfectsense/received_events","type":"Organization","site_admin":false},"repo":{"id":45073972,"name":"brightspot-styleguide","full_name":"perfectsense/brightspot-styleguide","owner":{"login":"perfectsense","id":260618,"avatar_url":"https://avatars.githubusercontent.com/u/260618?v=3","gravatar_id":"","url":"https://api.github.com/users/perfectsense","html_url":"https://github.com/perfectsense","followers_url":"https://api.github.com/users/perfectsense/followers","following_url":"https://api.github.com/users/perfectsense/following{/other_user}","gists_url":"https://api.github.com/users/perfectsense/gists{/gist_id}","starred_url":"https://api.github.com/users/perfectsense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perfectsense/subscriptions","organizations_url":"https://api.github.com/users/perfectsense/orgs","repos_url":"https://api.github.com/users/perfectsense/repos","events_url":"https://api.github.com/users/perfectsense/events{/privacy}","received_events_url":"https://api.github.com/users/perfectsense/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/perfectsense/brightspot-styleguide","description":"","fork":false,"url":"https://api.github.com/repos/perfectsense/brightspot-styleguide","forks_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/forks","keys_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/teams","hooks_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/hooks","issue_events_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/events{/number}","events_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/events","assignees_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/assignees{/user}","branches_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/branches{/branch}","tags_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/tags","blobs_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/refs{/sha}","trees_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/statuses/{sha}","languages_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/languages","stargazers_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/stargazers","contributors_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/contributors","subscribers_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/subscribers","subscription_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/subscription","commits_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/commits{/sha}","git_commits_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/git/commits{/sha}","comments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/comments{/number}","issue_comment_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/comments{/number}","contents_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/contents/{+path}","compare_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/merges","archive_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/downloads","issues_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues{/number}","pulls_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls{/number}","milestones_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/milestones{/number}","notifications_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/labels{/name}","releases_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/releases{/id}","deployments_url":"https://api.github.com/repos/perfectsense/brightspot-styleguide/deployments","created_at":"2015-10-27T22:27:33Z","updated_at":"2016-01-12T18:37:45Z","pushed_at":"2016-05-31T18:58:10Z","git_url":"git://github.com/perfectsense/brightspot-styleguide.git","ssh_url":"git@github.com:perfectsense/brightspot-styleguide.git","clone_url":"https://github.com/perfectsense/brightspot-styleguide.git","svn_url":"https://github.com/perfectsense/brightspot-styleguide","homepage":null,"size":298,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42"},"html":{"href":"https://github.com/perfectsense/brightspot-styleguide/pull/42"},"issue":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/42"},"comments":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/perfectsense/brightspot-styleguide/statuses/6f72f99fb9276924ea5bcefc2411e112a683481e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":162,"deletions":22,"changed_files":12}}
{"actor":{"display_login":"BryanMorgan"}}