{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/238","labels_url":"https://api.github.com/repos/facebook/jest/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/238/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/238/events","html_url":"https://github.com/facebook/jest/issues/238","id":56508715,"number":238,"title":"requiring json - odd behaviour","user":{"login":"gnesher","id":1402060,"avatar_url":"https://avatars.githubusercontent.com/u/1402060?v=3","gravatar_id":"","url":"https://api.github.com/users/gnesher","html_url":"https://github.com/gnesher","followers_url":"https://api.github.com/users/gnesher/followers","following_url":"https://api.github.com/users/gnesher/following{/other_user}","gists_url":"https://api.github.com/users/gnesher/gists{/gist_id}","starred_url":"https://api.github.com/users/gnesher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnesher/subscriptions","organizations_url":"https://api.github.com/users/gnesher/orgs","repos_url":"https://api.github.com/users/gnesher/repos","events_url":"https://api.github.com/users/gnesher/events{/privacy}","received_events_url":"https://api.github.com/users/gnesher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-04T10:25:25Z","updated_at":"2015-05-26T22:20:02Z","closed_at":null,"body":"I've just started using Jest and was requiring a JSON file with fake data to use in the tests and encountered the following behaviour:\r\n\r\nIf I don't use jest.dontMock the JSON file is imported, but boolean variables get removed.\r\n\r\nMind you, I should have used jest.dontMock to begin with.\r\nHaving said that I'm not sure why Jest would return all the properties except the boolean ones."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/105685925","html_url":"https://github.com/facebook/jest/issues/238#issuecomment-105685925","issue_url":"https://api.github.com/repos/facebook/jest/issues/238","id":105685925,"user":{"login":"iszandro","id":3345444,"avatar_url":"https://avatars.githubusercontent.com/u/3345444?v=3","gravatar_id":"","url":"https://api.github.com/users/iszandro","html_url":"https://github.com/iszandro","followers_url":"https://api.github.com/users/iszandro/followers","following_url":"https://api.github.com/users/iszandro/following{/other_user}","gists_url":"https://api.github.com/users/iszandro/gists{/gist_id}","starred_url":"https://api.github.com/users/iszandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iszandro/subscriptions","organizations_url":"https://api.github.com/users/iszandro/orgs","repos_url":"https://api.github.com/users/iszandro/repos","events_url":"https://api.github.com/users/iszandro/events{/privacy}","received_events_url":"https://api.github.com/users/iszandro/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T22:20:02Z","updated_at":"2015-05-26T22:20:02Z","body":"I'm having the same issue with arrays\r\n```\r\n// user.json\r\n{\r\n  \"user\": {\r\n    \"id\": 3,\r\n    \"comments\": [\r\n      {\r\n        \"id\": 64,\r\n        \"body\": \"My Comment\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nAfter requiring it:\r\n```\r\n// require('user.json')\r\n{\r\n  \"user\": {\r\n    \"id\": 3,\r\n    \"comments\": []\r\n  }\r\n}\r\n```"}}