{"action":"created","comment":{"url":"https://api.github.com/repos/Talend/react-talend-components/pulls/comments/97329219","pull_request_review_id":17932715,"id":97329219,"diff_hunk":"@@ -0,0 +1,30 @@\n+\n+/**\n+ * take an object and create a new FLAT object\n+ * { foo: { bar: 'baz' } } -> { \"$['foo']['bar']\": 'baz' }\n+ * @param  {any} data   [description]\n+ * @param  {Object} buffer because it's recursive\n+ * @param  {String} path   to keep the json path\n+ * @return {Object}        flatten\n+ */\n+export default function toFlat(data, buffer = {}, path = '$') {\n+\tlet prefix;\n+\tif (!path) {\n+\t\tprefix = '';\n+\t} else {\n+\t\tprefix = `${path}`;\n+\t}","path":"src/ObjectViewer/toflat.js","position":16,"original_position":16,"commit_id":"f374badfc8f06f37e939ec3700be88be65dbe9d6","original_commit_id":"f374badfc8f06f37e939ec3700be88be65dbe9d6","user":{"login":"talend-glorieux","id":19686241,"avatar_url":"https://avatars.githubusercontent.com/u/19686241?v=3","gravatar_id":"","url":"https://api.github.com/users/talend-glorieux","html_url":"https://github.com/talend-glorieux","followers_url":"https://api.github.com/users/talend-glorieux/followers","following_url":"https://api.github.com/users/talend-glorieux/following{/other_user}","gists_url":"https://api.github.com/users/talend-glorieux/gists{/gist_id}","starred_url":"https://api.github.com/users/talend-glorieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talend-glorieux/subscriptions","organizations_url":"https://api.github.com/users/talend-glorieux/orgs","repos_url":"https://api.github.com/users/talend-glorieux/repos","events_url":"https://api.github.com/users/talend-glorieux/events{/privacy}","received_events_url":"https://api.github.com/users/talend-glorieux/received_events","type":"User","site_admin":false},"body":"Should be moved into a function.","created_at":"2017-01-23T14:35:20Z","updated_at":"2017-01-23T14:35:52Z","html_url":"https://github.com/Talend/react-talend-components/pull/250#discussion_r97329219","pull_request_url":"https://api.github.com/repos/Talend/react-talend-components/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/comments/97329219"},"html":{"href":"https://github.com/Talend/react-talend-components/pull/250#discussion_r97329219"},"pull_request":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/Talend/react-talend-components/pulls/250","id":102439727,"html_url":"https://github.com/Talend/react-talend-components/pull/250","diff_url":"https://github.com/Talend/react-talend-components/pull/250.diff","patch_url":"https://github.com/Talend/react-talend-components/pull/250.patch","issue_url":"https://api.github.com/repos/Talend/react-talend-components/issues/250","number":250,"state":"open","locked":false,"title":"feat: add ObjectViewer","user":{"login":"jmfrancois","id":19857479,"avatar_url":"https://avatars.githubusercontent.com/u/19857479?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfrancois","html_url":"https://github.com/jmfrancois","followers_url":"https://api.github.com/users/jmfrancois/followers","following_url":"https://api.github.com/users/jmfrancois/following{/other_user}","gists_url":"https://api.github.com/users/jmfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfrancois/subscriptions","organizations_url":"https://api.github.com/users/jmfrancois/orgs","repos_url":"https://api.github.com/users/jmfrancois/repos","events_url":"https://api.github.com/users/jmfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/jmfrancois/received_events","type":"User","site_admin":false},"body":"**Please check if the PR fulfills these requirements**\r\n\r\n- [x] The commit(s) message(s) follows our [guidelines](https://github.com/talend/tools/blob/master/tools-root-github/CONTRIBUTING.md#commit-message-format)\r\n- [x] Tests for the changes have been added (for bug fixes / features)\r\n- [x] Docs have been added / updated (for bug fixes / features)\r\n\r\n\r\n**What is the current behavior?** (You can also link to an open issue here)\r\n\r\nNo component to display data of any kind (object, array, string, ...)\r\n\r\n**What is the new behavior?**\r\n\r\nObjectViewer is a new component\r\n\r\n<img width=\"329\" alt=\"screen shot 2017-01-19 at 11 54 18\" src=\"https://cloud.githubusercontent.com/assets/19857479/22146523/37199444-df05-11e6-923e-342f01248c02.png\">\r\n\r\n<img width=\"1002\" alt=\"screen shot 2017-01-20 at 18 10 25\" src=\"https://cloud.githubusercontent.com/assets/19857479/22158305/ee9c8ea6-df3b-11e6-80c8-70f155302f0a.png\">\r\n\r\n\r\n\r\n<img width=\"1176\" alt=\"screen shot 2017-01-20 at 11 40 45\" src=\"https://cloud.githubusercontent.com/assets/19857479/22146551/4f170590-df05-11e6-9a7a-3451728a4669.png\">\r\n\r\n","created_at":"2017-01-20T10:41:04Z","updated_at":"2017-01-23T14:35:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26137da9a98544a54ee5bd3a860c12e55e8740ad","assignee":{"login":"jmfrancois","id":19857479,"avatar_url":"https://avatars.githubusercontent.com/u/19857479?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfrancois","html_url":"https://github.com/jmfrancois","followers_url":"https://api.github.com/users/jmfrancois/followers","following_url":"https://api.github.com/users/jmfrancois/following{/other_user}","gists_url":"https://api.github.com/users/jmfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfrancois/subscriptions","organizations_url":"https://api.github.com/users/jmfrancois/orgs","repos_url":"https://api.github.com/users/jmfrancois/repos","events_url":"https://api.github.com/users/jmfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/jmfrancois/received_events","type":"User","site_admin":false},"assignees":[{"login":"jmfrancois","id":19857479,"avatar_url":"https://avatars.githubusercontent.com/u/19857479?v=3","gravatar_id":"","url":"https://api.github.com/users/jmfrancois","html_url":"https://github.com/jmfrancois","followers_url":"https://api.github.com/users/jmfrancois/followers","following_url":"https://api.github.com/users/jmfrancois/following{/other_user}","gists_url":"https://api.github.com/users/jmfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/jmfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmfrancois/subscriptions","organizations_url":"https://api.github.com/users/jmfrancois/orgs","repos_url":"https://api.github.com/users/jmfrancois/repos","events_url":"https://api.github.com/users/jmfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/jmfrancois/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Talend/react-talend-components/pulls/250/commits","review_comments_url":"https://api.github.com/repos/Talend/react-talend-components/pulls/250/comments","review_comment_url":"https://api.github.com/repos/Talend/react-talend-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Talend/react-talend-components/issues/250/comments","statuses_url":"https://api.github.com/repos/Talend/react-talend-components/statuses/f374badfc8f06f37e939ec3700be88be65dbe9d6","head":{"label":"Talend:feat/objectviewer","ref":"feat/objectviewer","sha":"f374badfc8f06f37e939ec3700be88be65dbe9d6","user":{"login":"Talend","id":459687,"avatar_url":"https://avatars.githubusercontent.com/u/459687?v=3","gravatar_id":"","url":"https://api.github.com/users/Talend","html_url":"https://github.com/Talend","followers_url":"https://api.github.com/users/Talend/followers","following_url":"https://api.github.com/users/Talend/following{/other_user}","gists_url":"https://api.github.com/users/Talend/gists{/gist_id}","starred_url":"https://api.github.com/users/Talend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Talend/subscriptions","organizations_url":"https://api.github.com/users/Talend/orgs","repos_url":"https://api.github.com/users/Talend/repos","events_url":"https://api.github.com/users/Talend/events{/privacy}","received_events_url":"https://api.github.com/users/Talend/received_events","type":"Organization","site_admin":false},"repo":{"id":70495607,"name":"react-talend-components","full_name":"Talend/react-talend-components","owner":{"login":"Talend","id":459687,"avatar_url":"https://avatars.githubusercontent.com/u/459687?v=3","gravatar_id":"","url":"https://api.github.com/users/Talend","html_url":"https://github.com/Talend","followers_url":"https://api.github.com/users/Talend/followers","following_url":"https://api.github.com/users/Talend/following{/other_user}","gists_url":"https://api.github.com/users/Talend/gists{/gist_id}","starred_url":"https://api.github.com/users/Talend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Talend/subscriptions","organizations_url":"https://api.github.com/users/Talend/orgs","repos_url":"https://api.github.com/users/Talend/repos","events_url":"https://api.github.com/users/Talend/events{/privacy}","received_events_url":"https://api.github.com/users/Talend/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Talend/react-talend-components","description":"Set of stateless react components which implement Talend guidelines","fork":false,"url":"https://api.github.com/repos/Talend/react-talend-components","forks_url":"https://api.github.com/repos/Talend/react-talend-components/forks","keys_url":"https://api.github.com/repos/Talend/react-talend-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Talend/react-talend-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Talend/react-talend-components/teams","hooks_url":"https://api.github.com/repos/Talend/react-talend-components/hooks","issue_events_url":"https://api.github.com/repos/Talend/react-talend-components/issues/events{/number}","events_url":"https://api.github.com/repos/Talend/react-talend-components/events","assignees_url":"https://api.github.com/repos/Talend/react-talend-components/assignees{/user}","branches_url":"https://api.github.com/repos/Talend/react-talend-components/branches{/branch}","tags_url":"https://api.github.com/repos/Talend/react-talend-components/tags","blobs_url":"https://api.github.com/repos/Talend/react-talend-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Talend/react-talend-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Talend/react-talend-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Talend/react-talend-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Talend/react-talend-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Talend/react-talend-components/languages","stargazers_url":"https://api.github.com/repos/Talend/react-talend-components/stargazers","contributors_url":"https://api.github.com/repos/Talend/react-talend-components/contributors","subscribers_url":"https://api.github.com/repos/Talend/react-talend-components/subscribers","subscription_url":"https://api.github.com/repos/Talend/react-talend-components/subscription","commits_url":"https://api.github.com/repos/Talend/react-talend-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Talend/react-talend-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Talend/react-talend-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Talend/react-talend-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Talend/react-talend-components/contents/{+path}","compare_url":"https://api.github.com/repos/Talend/react-talend-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Talend/react-talend-components/merges","archive_url":"https://api.github.com/repos/Talend/react-talend-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Talend/react-talend-components/downloads","issues_url":"https://api.github.com/repos/Talend/react-talend-components/issues{/number}","pulls_url":"https://api.github.com/repos/Talend/react-talend-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Talend/react-talend-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Talend/react-talend-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Talend/react-talend-components/labels{/name}","releases_url":"https://api.github.com/repos/Talend/react-talend-components/releases{/id}","deployments_url":"https://api.github.com/repos/Talend/react-talend-components/deployments","created_at":"2016-10-10T14:22:07Z","updated_at":"2016-12-30T02:34:14Z","pushed_at":"2017-01-23T14:29:41Z","git_url":"git://github.com/Talend/react-talend-components.git","ssh_url":"git@github.com:Talend/react-talend-components.git","clone_url":"https://github.com/Talend/react-talend-components.git","svn_url":"https://github.com/Talend/react-talend-components","homepage":"https://talend.github.io/react-talend-components","size":2591,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":22,"forks":3,"open_issues":22,"watchers":9,"default_branch":"master"}},"base":{"label":"Talend:master","ref":"master","sha":"70eabf4423fff5aee0eb3a7f47225885c9718179","user":{"login":"Talend","id":459687,"avatar_url":"https://avatars.githubusercontent.com/u/459687?v=3","gravatar_id":"","url":"https://api.github.com/users/Talend","html_url":"https://github.com/Talend","followers_url":"https://api.github.com/users/Talend/followers","following_url":"https://api.github.com/users/Talend/following{/other_user}","gists_url":"https://api.github.com/users/Talend/gists{/gist_id}","starred_url":"https://api.github.com/users/Talend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Talend/subscriptions","organizations_url":"https://api.github.com/users/Talend/orgs","repos_url":"https://api.github.com/users/Talend/repos","events_url":"https://api.github.com/users/Talend/events{/privacy}","received_events_url":"https://api.github.com/users/Talend/received_events","type":"Organization","site_admin":false},"repo":{"id":70495607,"name":"react-talend-components","full_name":"Talend/react-talend-components","owner":{"login":"Talend","id":459687,"avatar_url":"https://avatars.githubusercontent.com/u/459687?v=3","gravatar_id":"","url":"https://api.github.com/users/Talend","html_url":"https://github.com/Talend","followers_url":"https://api.github.com/users/Talend/followers","following_url":"https://api.github.com/users/Talend/following{/other_user}","gists_url":"https://api.github.com/users/Talend/gists{/gist_id}","starred_url":"https://api.github.com/users/Talend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Talend/subscriptions","organizations_url":"https://api.github.com/users/Talend/orgs","repos_url":"https://api.github.com/users/Talend/repos","events_url":"https://api.github.com/users/Talend/events{/privacy}","received_events_url":"https://api.github.com/users/Talend/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Talend/react-talend-components","description":"Set of stateless react components which implement Talend guidelines","fork":false,"url":"https://api.github.com/repos/Talend/react-talend-components","forks_url":"https://api.github.com/repos/Talend/react-talend-components/forks","keys_url":"https://api.github.com/repos/Talend/react-talend-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Talend/react-talend-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Talend/react-talend-components/teams","hooks_url":"https://api.github.com/repos/Talend/react-talend-components/hooks","issue_events_url":"https://api.github.com/repos/Talend/react-talend-components/issues/events{/number}","events_url":"https://api.github.com/repos/Talend/react-talend-components/events","assignees_url":"https://api.github.com/repos/Talend/react-talend-components/assignees{/user}","branches_url":"https://api.github.com/repos/Talend/react-talend-components/branches{/branch}","tags_url":"https://api.github.com/repos/Talend/react-talend-components/tags","blobs_url":"https://api.github.com/repos/Talend/react-talend-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Talend/react-talend-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Talend/react-talend-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Talend/react-talend-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Talend/react-talend-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Talend/react-talend-components/languages","stargazers_url":"https://api.github.com/repos/Talend/react-talend-components/stargazers","contributors_url":"https://api.github.com/repos/Talend/react-talend-components/contributors","subscribers_url":"https://api.github.com/repos/Talend/react-talend-components/subscribers","subscription_url":"https://api.github.com/repos/Talend/react-talend-components/subscription","commits_url":"https://api.github.com/repos/Talend/react-talend-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Talend/react-talend-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Talend/react-talend-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Talend/react-talend-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Talend/react-talend-components/contents/{+path}","compare_url":"https://api.github.com/repos/Talend/react-talend-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Talend/react-talend-components/merges","archive_url":"https://api.github.com/repos/Talend/react-talend-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Talend/react-talend-components/downloads","issues_url":"https://api.github.com/repos/Talend/react-talend-components/issues{/number}","pulls_url":"https://api.github.com/repos/Talend/react-talend-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Talend/react-talend-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Talend/react-talend-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Talend/react-talend-components/labels{/name}","releases_url":"https://api.github.com/repos/Talend/react-talend-components/releases{/id}","deployments_url":"https://api.github.com/repos/Talend/react-talend-components/deployments","created_at":"2016-10-10T14:22:07Z","updated_at":"2016-12-30T02:34:14Z","pushed_at":"2017-01-23T14:29:41Z","git_url":"git://github.com/Talend/react-talend-components.git","ssh_url":"git@github.com:Talend/react-talend-components.git","clone_url":"https://github.com/Talend/react-talend-components.git","svn_url":"https://github.com/Talend/react-talend-components","homepage":"https://talend.github.io/react-talend-components","size":2591,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":22,"forks":3,"open_issues":22,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/250"},"html":{"href":"https://github.com/Talend/react-talend-components/pull/250"},"issue":{"href":"https://api.github.com/repos/Talend/react-talend-components/issues/250"},"comments":{"href":"https://api.github.com/repos/Talend/react-talend-components/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Talend/react-talend-components/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/Talend/react-talend-components/statuses/f374badfc8f06f37e939ec3700be88be65dbe9d6"}}}}
{"actor":{"display_login":"talend-glorieux"}}