{"action":"opened","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/126","repository_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/126/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge.Newtonsoft.Json/issues/126/events","html_url":"https://github.com/bridgedotnet/Bridge.Newtonsoft.Json/issues/126","id":335415272,"node_id":"MDU6SXNzdWUzMzU0MTUyNzI=","number":126,"title":"System.Version not deserializing correctly","user":{"login":"FasettoAndrew","id":13521143,"node_id":"MDQ6VXNlcjEzNTIxMTQz","avatar_url":"https://avatars0.githubusercontent.com/u/13521143?v=4","gravatar_id":"","url":"https://api.github.com/users/FasettoAndrew","html_url":"https://github.com/FasettoAndrew","followers_url":"https://api.github.com/users/FasettoAndrew/followers","following_url":"https://api.github.com/users/FasettoAndrew/following{/other_user}","gists_url":"https://api.github.com/users/FasettoAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/FasettoAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FasettoAndrew/subscriptions","organizations_url":"https://api.github.com/users/FasettoAndrew/orgs","repos_url":"https://api.github.com/users/FasettoAndrew/repos","events_url":"https://api.github.com/users/FasettoAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/FasettoAndrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T13:48:25Z","updated_at":"2018-06-25T13:48:25Z","closed_at":null,"author_association":"NONE","body":"When deserializing a System.Version object, the resulting value is the default new version.\r\n\r\nPlease see:\r\nhttps://deck.net/b58dcd63500ecb52c42e07992039e249\r\n\r\n```\r\npublic class Program\r\n{\r\n    public static void Main()\r\n    {\r\n        var vers = new Version(4,3,2,1);\r\n        \r\n        Console.WriteLine(vers);\r\n        \r\n        var serial = JsonConvert.SerializeObject(vers);\r\n        \r\n        Console.WriteLine(serial);\r\n        \r\n        var deserial = JsonConvert.DeserializeObject<Version>(serial);\r\n        \r\n        Console.WriteLine(deserial);\r\n    }\r\n}\r\n```\r\n\r\nExpected behaviour\r\n\r\n```\r\n4.3.2.1\r\n{\"Build\":2,\"Major\":4,\"MajorRevision\":0,\"Minor\":3,\"MinorRevision\":1,\"Revision\":1}\r\n4.3.2.1\r\n```\r\n\r\nCurrent/Actual behaviour\r\n\r\n```\r\n4.3.2.1\r\n{\"Build\":2,\"Major\":4,\"MajorRevision\":0,\"Minor\":3,\"MinorRevision\":1,\"Revision\":1}\r\n0.0\r\n```"}}
{"actor":{"display_login":"FasettoAndrew"}}