{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/FakeRest/issues/21","repository_url":"https://api.github.com/repos/marmelab/FakeRest","labels_url":"https://api.github.com/repos/marmelab/FakeRest/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/FakeRest/issues/21/comments","events_url":"https://api.github.com/repos/marmelab/FakeRest/issues/21/events","html_url":"https://github.com/marmelab/FakeRest/issues/21","id":158402648,"node_id":"MDU6SXNzdWUxNTg0MDI2NDg=","number":21,"title":"Example code doesn't work","user":{"login":"jojoyuji","id":675317,"node_id":"MDQ6VXNlcjY3NTMxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/675317?v=4","gravatar_id":"","url":"https://api.github.com/users/jojoyuji","html_url":"https://github.com/jojoyuji","followers_url":"https://api.github.com/users/jojoyuji/followers","following_url":"https://api.github.com/users/jojoyuji/following{/other_user}","gists_url":"https://api.github.com/users/jojoyuji/gists{/gist_id}","starred_url":"https://api.github.com/users/jojoyuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojoyuji/subscriptions","organizations_url":"https://api.github.com/users/jojoyuji/orgs","repos_url":"https://api.github.com/users/jojoyuji/repos","events_url":"https://api.github.com/users/jojoyuji/events{/privacy}","received_events_url":"https://api.github.com/users/jojoyuji/received_events","type":"User","site_admin":false},"labels":[{"id":454228898,"node_id":"MDU6TGFiZWw0NTQyMjg4OTg=","url":"https://api.github.com/repos/marmelab/FakeRest/labels/Hacktober%20Fest","name":"Hacktober Fest","color":"b0581d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-03T16:13:52Z","updated_at":"2018-10-02T12:13:34Z","closed_at":null,"author_association":"NONE","body":"```\n<script src=\"/path/to/FakeRest.min.js\"></script>\n<script src=\"/path/to/sinon.js\"></script>\n<script type=\"text/javascript\">\nvar data = {\n    'authors': [\n        { id: 0, first_name: 'Leo', last_name: 'Tolstoi' },\n        { id: 1, first_name: 'Jane', last_name: 'Austen' }\n    ],\n    'books': [\n        { id: 0, author_id: 0, title: 'Anna Karenina' },\n        { id: 1, author_id: 0, title: 'War and Peace' },\n        { id: 2, author_id: 1, title: 'Pride and Prejudice' },\n        { id: 3, author_id: 1, title: 'Sense and Sensibility' }\n    ],\n    'settings': {\n        language: 'english',\n        preferred_format: 'hardback',\n    }\n};\n// initialize fake REST server\nvar restServer = new FakeRest.Server();\nrestServer.init(data);\n// use sinon.js to monkey-patch XmlHttpRequest\nvar server = sinon.fakeServer.create();\nserver.respondWith(restServer.getHandler());\n</script>\n```\n\nthrows \"FakeRest.min.js:1 Uncaught Error: Can't initialize a Collection with anything else than an array of items\"\n\nusing via bower and sinon installed via: \n`devDependencies: {\n  \"sinon-server\": \"http://sinonjs.org/releases/sinon-server-1.14.1.js\"\n}`\n"},"comment":{"url":"https://api.github.com/repos/marmelab/FakeRest/issues/comments/426250383","html_url":"https://github.com/marmelab/FakeRest/issues/21#issuecomment-426250383","issue_url":"https://api.github.com/repos/marmelab/FakeRest/issues/21","id":426250383,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI1MDM4Mw==","user":{"login":"jbaranski","id":10889950,"node_id":"MDQ6VXNlcjEwODg5OTUw","avatar_url":"https://avatars0.githubusercontent.com/u/10889950?v=4","gravatar_id":"","url":"https://api.github.com/users/jbaranski","html_url":"https://github.com/jbaranski","followers_url":"https://api.github.com/users/jbaranski/followers","following_url":"https://api.github.com/users/jbaranski/following{/other_user}","gists_url":"https://api.github.com/users/jbaranski/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaranski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaranski/subscriptions","organizations_url":"https://api.github.com/users/jbaranski/orgs","repos_url":"https://api.github.com/users/jbaranski/repos","events_url":"https://api.github.com/users/jbaranski/events{/privacy}","received_events_url":"https://api.github.com/users/jbaranski/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T12:13:34Z","updated_at":"2018-10-02T12:13:34Z","author_association":"NONE","body":"I was going to fix this but it doesn't appear to be an issue anymore. Using a plain settings object no error is thrown."}}
{"actor":{"display_login":"jbaranski"}}