{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/121","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/121/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/121/events","html_url":"https://github.com/bridgedotnet/Bridge.Newtonsoft.Json/issues/121","id":332913391,"node_id":"MDU6SXNzdWUzMzI5MTMzOTE=","number":121,"title":"Deserializing a bool? property with JsonConvert","user":{"login":"vladsch","id":378225,"node_id":"MDQ6VXNlcjM3ODIyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/378225?v=4","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false},"labels":[{"id":600202909,"node_id":"MDU6TGFiZWw2MDAyMDI5MDk=","url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/labels/defect","name":"defect","color":"e11d21","default":false},{"id":723182362,"node_id":"MDU6TGFiZWw3MjMxODIzNjI=","url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/labels/in-progress","name":"in-progress","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":{"login":"vladsch","id":378225,"node_id":"MDQ6VXNlcjM3ODIyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/378225?v=4","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false},"assignees":[{"login":"vladsch","id":378225,"node_id":"MDQ6VXNlcjM3ODIyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/378225?v=4","gravatar_id":"","url":"https://api.github.com/users/vladsch","html_url":"https://github.com/vladsch","followers_url":"https://api.github.com/users/vladsch/followers","following_url":"https://api.github.com/users/vladsch/following{/other_user}","gists_url":"https://api.github.com/users/vladsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vladsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladsch/subscriptions","organizations_url":"https://api.github.com/users/vladsch/orgs","repos_url":"https://api.github.com/users/vladsch/repos","events_url":"https://api.github.com/users/vladsch/events{/privacy}","received_events_url":"https://api.github.com/users/vladsch/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/milestones/15","html_url":"https://github.com/bridgedotnet/Bridge.Newtonsoft.Json/milestone/15","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/milestones/15/labels","id":3393594,"node_id":"MDk6TWlsZXN0b25lMzM5MzU5NA==","number":15,"title":"1.9.0","description":"","creator":{"login":"fabriciomurta","id":10730372,"node_id":"MDQ6VXNlcjEwNzMwMzcy","avatar_url":"https://avatars2.githubusercontent.com/u/10730372?v=4","gravatar_id":"","url":"https://api.github.com/users/fabriciomurta","html_url":"https://github.com/fabriciomurta","followers_url":"https://api.github.com/users/fabriciomurta/followers","following_url":"https://api.github.com/users/fabriciomurta/following{/other_user}","gists_url":"https://api.github.com/users/fabriciomurta/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriciomurta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriciomurta/subscriptions","organizations_url":"https://api.github.com/users/fabriciomurta/orgs","repos_url":"https://api.github.com/users/fabriciomurta/repos","events_url":"https://api.github.com/users/fabriciomurta/events{/privacy}","received_events_url":"https://api.github.com/users/fabriciomurta/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":8,"state":"open","created_at":"2018-06-01T15:35:32Z","updated_at":"2018-07-05T18:53:58Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-06-15T21:03:20Z","updated_at":"2018-07-05T18:53:58Z","closed_at":"2018-07-05T18:53:58Z","author_association":"MEMBER","body":"When I use JsonConvert to deserialize an object with a nullable bool property I get null if the property is set to false. \r\n\r\n```cs\r\npublic class Program\r\n{\r\n    public static void Main()\r\n    {       \r\n        var test = new TestDto();\r\n        test.A = true;\r\n        test.B = false;\r\n        test.C = null;\r\n        \r\n        var serialized = JsonConvert.SerializeObject(test);\r\n        Console.WriteLine(serialized);\r\n        \r\n        var deserialized = JsonConvert.DeserializeObject<TestDto>(serialized);\r\n        \r\n        Console.WriteLine(deserialized.A);\r\n        Console.WriteLine(deserialized.B); // should output false\r\n        Console.WriteLine(deserialized.C);\r\n    }\r\n}\r\n\r\n\r\npublic class TestDto\r\n{\r\n    public bool? A { get; set; }\r\n    public bool? B { get; set; }\r\n    public bool? C { get; set; }\r\n}\r\n```\r\n\r\nSample to reproduce https://deck.net/b984ea4ddd0b4958406adbc150c8d985\r\n\r\n## See Also\r\n\r\n* https://forums.bridge.net/forum/bridge-net-pro/bugs/5505-bug-deserializing-a-bool-property-with-jsonconvert"},"comment":{"url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/comments/402819566","html_url":"https://github.com/bridgedotnet/Bridge.Newtonsoft.Json/issues/121#issuecomment-402819566","issue_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/121","id":402819566,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjgxOTU2Ng==","user":{"login":"fabriciomurta","id":10730372,"node_id":"MDQ6VXNlcjEwNzMwMzcy","avatar_url":"https://avatars2.githubusercontent.com/u/10730372?v=4","gravatar_id":"","url":"https://api.github.com/users/fabriciomurta","html_url":"https://github.com/fabriciomurta","followers_url":"https://api.github.com/users/fabriciomurta/followers","following_url":"https://api.github.com/users/fabriciomurta/following{/other_user}","gists_url":"https://api.github.com/users/fabriciomurta/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriciomurta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriciomurta/subscriptions","organizations_url":"https://api.github.com/users/fabriciomurta/orgs","repos_url":"https://api.github.com/users/fabriciomurta/repos","events_url":"https://api.github.com/users/fabriciomurta/events{/privacy}","received_events_url":"https://api.github.com/users/fabriciomurta/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T18:53:58Z","updated_at":"2018-07-05T18:53:58Z","author_association":"CONTRIBUTOR","body":"Fixed and merged! The fix will make it live the next Bridge.Newtonsoft.Json package release!"}}
{"actor":{"display_login":"fabriciomurta"}}