{"action":"created","issue":{"url":"https://api.github.com/repos/hughsk/flat/issues/32","labels_url":"https://api.github.com/repos/hughsk/flat/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/hughsk/flat/issues/32/comments","events_url":"https://api.github.com/repos/hughsk/flat/issues/32/events","html_url":"https://github.com/hughsk/flat/issues/32","id":103202961,"number":32,"title":"Maximum call stack size exceeded","user":{"login":"abhinav76","id":10813186,"avatar_url":"https://avatars.githubusercontent.com/u/10813186?v=3","gravatar_id":"","url":"https://api.github.com/users/abhinav76","html_url":"https://github.com/abhinav76","followers_url":"https://api.github.com/users/abhinav76/followers","following_url":"https://api.github.com/users/abhinav76/following{/other_user}","gists_url":"https://api.github.com/users/abhinav76/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinav76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinav76/subscriptions","organizations_url":"https://api.github.com/users/abhinav76/orgs","repos_url":"https://api.github.com/users/abhinav76/repos","events_url":"https://api.github.com/users/abhinav76/events{/privacy}","received_events_url":"https://api.github.com/users/abhinav76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-26T07:57:39Z","updated_at":"2015-08-27T10:16:59Z","closed_at":null,"body":"i tried to use flatten on the data retrieved from the database\r\nbut recieved this error\r\n<code>\r\nUnhandled rejection RangeError: Maximum call stack size exceeded\r\n    at new Boolean (native)\r\n    at Boolean.toString (native)\r\n    at /opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:17:44\r\n    at Array.forEach (native)\r\n    at step (/opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:14:25)\r\n    at /opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:34:16\r\n    at Array.forEach (native)\r\n    at step (/opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:14:25)\r\n    at /opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:34:16\r\n    at Array.forEach (native)\r\n    at step (/opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:14:25)\r\n    at /opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:34:16\r\n    at Array.forEach (native)\r\n    at step (/opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:14:25)\r\n    at /opt/lampp/htdocs/node-fropper/node_modules/flat/index.js:34:16\r\n    at Array.forEach (native)\r\n\r\n</code>\r\nfull error looks like this"},"comment":{"url":"https://api.github.com/repos/hughsk/flat/issues/comments/135371855","html_url":"https://github.com/hughsk/flat/issues/32#issuecomment-135371855","issue_url":"https://api.github.com/repos/hughsk/flat/issues/32","id":135371855,"user":{"login":"stockholmux","id":1152927,"avatar_url":"https://avatars.githubusercontent.com/u/1152927?v=3","gravatar_id":"","url":"https://api.github.com/users/stockholmux","html_url":"https://github.com/stockholmux","followers_url":"https://api.github.com/users/stockholmux/followers","following_url":"https://api.github.com/users/stockholmux/following{/other_user}","gists_url":"https://api.github.com/users/stockholmux/gists{/gist_id}","starred_url":"https://api.github.com/users/stockholmux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockholmux/subscriptions","organizations_url":"https://api.github.com/users/stockholmux/orgs","repos_url":"https://api.github.com/users/stockholmux/repos","events_url":"https://api.github.com/users/stockholmux/events{/privacy}","received_events_url":"https://api.github.com/users/stockholmux/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T10:16:59Z","updated_at":"2015-08-27T10:16:59Z","body":"@abhinav76 what you've provided isn't a JS object and that doesn't look like the real output of a `console.log`. You can redact user info if you need to, but seeing the actual result of the log will help us understand why you're getting the error and maybe help you out.\r\n\r\nMy hunch is there is a circular reference somewhere in your object. This is the only way I could get a `RangeError: Maximum call stack size exceeded` error:\r\n\r\n```\r\nvar\r\n  flatten = require('flat'),\r\n  a = {},\r\n  b = {};\r\n\r\na.info = b;\r\nb.info = a;\r\n\r\nconsole.log(flatten(a));\r\n```"}}