{"action":"created","issue":{"url":"https://api.github.com/repos/restify/errors/issues/34","repository_url":"https://api.github.com/repos/restify/errors","labels_url":"https://api.github.com/repos/restify/errors/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/restify/errors/issues/34/comments","events_url":"https://api.github.com/repos/restify/errors/issues/34/events","html_url":"https://github.com/restify/errors/pull/34","id":154367197,"number":34,"title":"fix toJSON behavior","user":{"login":"DonutEspresso","id":2381315,"avatar_url":"https://avatars.githubusercontent.com/u/2381315?v=3","gravatar_id":"","url":"https://api.github.com/users/DonutEspresso","html_url":"https://github.com/DonutEspresso","followers_url":"https://api.github.com/users/DonutEspresso/followers","following_url":"https://api.github.com/users/DonutEspresso/following{/other_user}","gists_url":"https://api.github.com/users/DonutEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/DonutEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonutEspresso/subscriptions","organizations_url":"https://api.github.com/users/DonutEspresso/orgs","repos_url":"https://api.github.com/users/DonutEspresso/repos","events_url":"https://api.github.com/users/DonutEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/DonutEspresso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T23:42:39Z","updated_at":"2016-05-11T23:56:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/restify/errors/pulls/34","html_url":"https://github.com/restify/errors/pull/34","diff_url":"https://github.com/restify/errors/pull/34.diff","patch_url":"https://github.com/restify/errors/pull/34.patch"},"body":"- Fix long standing bug with double JSON stringifed errors. \r\n- When serializing to JSON, we now call `toString()` and VError should return the full context of the error message back. That's used as the 'message' when we have nested causes. \r\n\r\nBlocker for restify/node-restify#1084"},"comment":{"url":"https://api.github.com/repos/restify/errors/issues/comments/218624210","html_url":"https://github.com/restify/errors/pull/34#issuecomment-218624210","issue_url":"https://api.github.com/repos/restify/errors/issues/34","id":218624210,"user":{"login":"DonutEspresso","id":2381315,"avatar_url":"https://avatars.githubusercontent.com/u/2381315?v=3","gravatar_id":"","url":"https://api.github.com/users/DonutEspresso","html_url":"https://github.com/DonutEspresso","followers_url":"https://api.github.com/users/DonutEspresso/followers","following_url":"https://api.github.com/users/DonutEspresso/following{/other_user}","gists_url":"https://api.github.com/users/DonutEspresso/gists{/gist_id}","starred_url":"https://api.github.com/users/DonutEspresso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonutEspresso/subscriptions","organizations_url":"https://api.github.com/users/DonutEspresso/orgs","repos_url":"https://api.github.com/users/DonutEspresso/repos","events_url":"https://api.github.com/users/DonutEspresso/events{/privacy}","received_events_url":"https://api.github.com/users/DonutEspresso/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T23:56:57Z","updated_at":"2016-05-11T23:56:57Z","body":"@yunong @micahr incorrect usage of JSON.stringify (including tests) causing some integration issues with restify 5.x. This fixes that along with the tests."}}