{"action":"closed","number":167,"pull_request":{"url":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167","id":17387891,"html_url":"https://github.com/michelson/lazy_high_charts/pull/167","diff_url":"https://github.com/michelson/lazy_high_charts/pull/167.diff","patch_url":"https://github.com/michelson/lazy_high_charts/pull/167.patch","issue_url":"https://api.github.com/repos/michelson/lazy_high_charts/issues/167","number":167,"state":"closed","locked":false,"title":"Add HighChart#as_json method","user":{"login":"sukima","id":70075,"avatar_url":"https://avatars.githubusercontent.com/u/70075?v=3","gravatar_id":"","url":"https://api.github.com/users/sukima","html_url":"https://github.com/sukima","followers_url":"https://api.github.com/users/sukima/followers","following_url":"https://api.github.com/users/sukima/following{/other_user}","gists_url":"https://api.github.com/users/sukima/gists{/gist_id}","starred_url":"https://api.github.com/users/sukima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukima/subscriptions","organizations_url":"https://api.github.com/users/sukima/orgs","repos_url":"https://api.github.com/users/sukima/repos","events_url":"https://api.github.com/users/sukima/events{/privacy}","received_events_url":"https://api.github.com/users/sukima/received_events","type":"User","site_admin":false},"body":"When using a HighChart object for returning JSON data in a rails controller it\nis often appropiot to pass an object into the render method as a hash to be\nconverted into JSON.\n\n    render json: @chart\n\nThe render method will process the hash offered by the json: using it's \nas_json method if it exists.\n\nhttp://stackoverflow.com/a/2574900/227176 explains this better.","created_at":"2014-06-20T03:30:00Z","updated_at":"2015-09-15T21:57:35Z","closed_at":"2015-09-15T21:57:35Z","merged_at":"2015-09-15T21:57:35Z","merge_commit_sha":"a88a6c19be3bc76d3b59c85cd487d20450f681ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167/commits","review_comments_url":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167/comments","review_comment_url":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michelson/lazy_high_charts/issues/167/comments","statuses_url":"https://api.github.com/repos/michelson/lazy_high_charts/statuses/53b987cfbd335c43a009959a109670b95525eddc","head":{"label":"sukima:feature/add-to-json","ref":"feature/add-to-json","sha":"53b987cfbd335c43a009959a109670b95525eddc","user":{"login":"sukima","id":70075,"avatar_url":"https://avatars.githubusercontent.com/u/70075?v=3","gravatar_id":"","url":"https://api.github.com/users/sukima","html_url":"https://github.com/sukima","followers_url":"https://api.github.com/users/sukima/followers","following_url":"https://api.github.com/users/sukima/following{/other_user}","gists_url":"https://api.github.com/users/sukima/gists{/gist_id}","starred_url":"https://api.github.com/users/sukima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukima/subscriptions","organizations_url":"https://api.github.com/users/sukima/orgs","repos_url":"https://api.github.com/users/sukima/repos","events_url":"https://api.github.com/users/sukima/events{/privacy}","received_events_url":"https://api.github.com/users/sukima/received_events","type":"User","site_admin":false},"repo":{"id":21023252,"name":"lazy_high_charts","full_name":"sukima/lazy_high_charts","owner":{"login":"sukima","id":70075,"avatar_url":"https://avatars.githubusercontent.com/u/70075?v=3","gravatar_id":"","url":"https://api.github.com/users/sukima","html_url":"https://github.com/sukima","followers_url":"https://api.github.com/users/sukima/followers","following_url":"https://api.github.com/users/sukima/following{/other_user}","gists_url":"https://api.github.com/users/sukima/gists{/gist_id}","starred_url":"https://api.github.com/users/sukima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukima/subscriptions","organizations_url":"https://api.github.com/users/sukima/orgs","repos_url":"https://api.github.com/users/sukima/repos","events_url":"https://api.github.com/users/sukima/events{/privacy}","received_events_url":"https://api.github.com/users/sukima/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sukima/lazy_high_charts","description":"Make highcharts a la ruby , works in rails 3.X, 4 and other ruby web frameworks","fork":true,"url":"https://api.github.com/repos/sukima/lazy_high_charts","forks_url":"https://api.github.com/repos/sukima/lazy_high_charts/forks","keys_url":"https://api.github.com/repos/sukima/lazy_high_charts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sukima/lazy_high_charts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sukima/lazy_high_charts/teams","hooks_url":"https://api.github.com/repos/sukima/lazy_high_charts/hooks","issue_events_url":"https://api.github.com/repos/sukima/lazy_high_charts/issues/events{/number}","events_url":"https://api.github.com/repos/sukima/lazy_high_charts/events","assignees_url":"https://api.github.com/repos/sukima/lazy_high_charts/assignees{/user}","branches_url":"https://api.github.com/repos/sukima/lazy_high_charts/branches{/branch}","tags_url":"https://api.github.com/repos/sukima/lazy_high_charts/tags","blobs_url":"https://api.github.com/repos/sukima/lazy_high_charts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sukima/lazy_high_charts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sukima/lazy_high_charts/git/refs{/sha}","trees_url":"https://api.github.com/repos/sukima/lazy_high_charts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sukima/lazy_high_charts/statuses/{sha}","languages_url":"https://api.github.com/repos/sukima/lazy_high_charts/languages","stargazers_url":"https://api.github.com/repos/sukima/lazy_high_charts/stargazers","contributors_url":"https://api.github.com/repos/sukima/lazy_high_charts/contributors","subscribers_url":"https://api.github.com/repos/sukima/lazy_high_charts/subscribers","subscription_url":"https://api.github.com/repos/sukima/lazy_high_charts/subscription","commits_url":"https://api.github.com/repos/sukima/lazy_high_charts/commits{/sha}","git_commits_url":"https://api.github.com/repos/sukima/lazy_high_charts/git/commits{/sha}","comments_url":"https://api.github.com/repos/sukima/lazy_high_charts/comments{/number}","issue_comment_url":"https://api.github.com/repos/sukima/lazy_high_charts/issues/comments{/number}","contents_url":"https://api.github.com/repos/sukima/lazy_high_charts/contents/{+path}","compare_url":"https://api.github.com/repos/sukima/lazy_high_charts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sukima/lazy_high_charts/merges","archive_url":"https://api.github.com/repos/sukima/lazy_high_charts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sukima/lazy_high_charts/downloads","issues_url":"https://api.github.com/repos/sukima/lazy_high_charts/issues{/number}","pulls_url":"https://api.github.com/repos/sukima/lazy_high_charts/pulls{/number}","milestones_url":"https://api.github.com/repos/sukima/lazy_high_charts/milestones{/number}","notifications_url":"https://api.github.com/repos/sukima/lazy_high_charts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sukima/lazy_high_charts/labels{/name}","releases_url":"https://api.github.com/repos/sukima/lazy_high_charts/releases{/id}","created_at":"2014-06-20T02:51:53Z","updated_at":"2014-06-20T03:30:00Z","pushed_at":"2014-06-20T03:29:55Z","git_url":"git://github.com/sukima/lazy_high_charts.git","ssh_url":"git@github.com:sukima/lazy_high_charts.git","clone_url":"https://github.com/sukima/lazy_high_charts.git","svn_url":"https://github.com/sukima/lazy_high_charts","homepage":"http://www.suipit.com","size":1429,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"michelson:master","ref":"master","sha":"486be616e8b14f989a4598b606d3b70ca145d8f5","user":{"login":"michelson","id":11976,"avatar_url":"https://avatars.githubusercontent.com/u/11976?v=3","gravatar_id":"","url":"https://api.github.com/users/michelson","html_url":"https://github.com/michelson","followers_url":"https://api.github.com/users/michelson/followers","following_url":"https://api.github.com/users/michelson/following{/other_user}","gists_url":"https://api.github.com/users/michelson/gists{/gist_id}","starred_url":"https://api.github.com/users/michelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelson/subscriptions","organizations_url":"https://api.github.com/users/michelson/orgs","repos_url":"https://api.github.com/users/michelson/repos","events_url":"https://api.github.com/users/michelson/events{/privacy}","received_events_url":"https://api.github.com/users/michelson/received_events","type":"User","site_admin":false},"repo":{"id":451554,"name":"lazy_high_charts","full_name":"michelson/lazy_high_charts","owner":{"login":"michelson","id":11976,"avatar_url":"https://avatars.githubusercontent.com/u/11976?v=3","gravatar_id":"","url":"https://api.github.com/users/michelson","html_url":"https://github.com/michelson","followers_url":"https://api.github.com/users/michelson/followers","following_url":"https://api.github.com/users/michelson/following{/other_user}","gists_url":"https://api.github.com/users/michelson/gists{/gist_id}","starred_url":"https://api.github.com/users/michelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelson/subscriptions","organizations_url":"https://api.github.com/users/michelson/orgs","repos_url":"https://api.github.com/users/michelson/repos","events_url":"https://api.github.com/users/michelson/events{/privacy}","received_events_url":"https://api.github.com/users/michelson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michelson/lazy_high_charts","description":"Make highcharts a la ruby , works in rails 4.X / 3.X, and other ruby web frameworks","fork":false,"url":"https://api.github.com/repos/michelson/lazy_high_charts","forks_url":"https://api.github.com/repos/michelson/lazy_high_charts/forks","keys_url":"https://api.github.com/repos/michelson/lazy_high_charts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michelson/lazy_high_charts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michelson/lazy_high_charts/teams","hooks_url":"https://api.github.com/repos/michelson/lazy_high_charts/hooks","issue_events_url":"https://api.github.com/repos/michelson/lazy_high_charts/issues/events{/number}","events_url":"https://api.github.com/repos/michelson/lazy_high_charts/events","assignees_url":"https://api.github.com/repos/michelson/lazy_high_charts/assignees{/user}","branches_url":"https://api.github.com/repos/michelson/lazy_high_charts/branches{/branch}","tags_url":"https://api.github.com/repos/michelson/lazy_high_charts/tags","blobs_url":"https://api.github.com/repos/michelson/lazy_high_charts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michelson/lazy_high_charts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michelson/lazy_high_charts/git/refs{/sha}","trees_url":"https://api.github.com/repos/michelson/lazy_high_charts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michelson/lazy_high_charts/statuses/{sha}","languages_url":"https://api.github.com/repos/michelson/lazy_high_charts/languages","stargazers_url":"https://api.github.com/repos/michelson/lazy_high_charts/stargazers","contributors_url":"https://api.github.com/repos/michelson/lazy_high_charts/contributors","subscribers_url":"https://api.github.com/repos/michelson/lazy_high_charts/subscribers","subscription_url":"https://api.github.com/repos/michelson/lazy_high_charts/subscription","commits_url":"https://api.github.com/repos/michelson/lazy_high_charts/commits{/sha}","git_commits_url":"https://api.github.com/repos/michelson/lazy_high_charts/git/commits{/sha}","comments_url":"https://api.github.com/repos/michelson/lazy_high_charts/comments{/number}","issue_comment_url":"https://api.github.com/repos/michelson/lazy_high_charts/issues/comments{/number}","contents_url":"https://api.github.com/repos/michelson/lazy_high_charts/contents/{+path}","compare_url":"https://api.github.com/repos/michelson/lazy_high_charts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michelson/lazy_high_charts/merges","archive_url":"https://api.github.com/repos/michelson/lazy_high_charts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michelson/lazy_high_charts/downloads","issues_url":"https://api.github.com/repos/michelson/lazy_high_charts/issues{/number}","pulls_url":"https://api.github.com/repos/michelson/lazy_high_charts/pulls{/number}","milestones_url":"https://api.github.com/repos/michelson/lazy_high_charts/milestones{/number}","notifications_url":"https://api.github.com/repos/michelson/lazy_high_charts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michelson/lazy_high_charts/labels{/name}","releases_url":"https://api.github.com/repos/michelson/lazy_high_charts/releases{/id}","created_at":"2009-12-28T22:29:14Z","updated_at":"2015-09-14T13:42:33Z","pushed_at":"2015-09-15T21:57:35Z","git_url":"git://github.com/michelson/lazy_high_charts.git","ssh_url":"git@github.com:michelson/lazy_high_charts.git","clone_url":"https://github.com/michelson/lazy_high_charts.git","svn_url":"https://github.com/michelson/lazy_high_charts","homepage":"http://www.suipit.com","size":2114,"stargazers_count":878,"watchers_count":878,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":18,"forks":184,"open_issues":18,"watchers":878,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167"},"html":{"href":"https://github.com/michelson/lazy_high_charts/pull/167"},"issue":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/issues/167"},"comments":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/michelson/lazy_high_charts/statuses/53b987cfbd335c43a009959a109670b95525eddc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"xiaods","id":37678,"avatar_url":"https://avatars.githubusercontent.com/u/37678?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaods","html_url":"https://github.com/xiaods","followers_url":"https://api.github.com/users/xiaods/followers","following_url":"https://api.github.com/users/xiaods/following{/other_user}","gists_url":"https://api.github.com/users/xiaods/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaods/subscriptions","organizations_url":"https://api.github.com/users/xiaods/orgs","repos_url":"https://api.github.com/users/xiaods/repos","events_url":"https://api.github.com/users/xiaods/events{/privacy}","received_events_url":"https://api.github.com/users/xiaods/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}