{"action":"created","issue":{"url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/405","labels_url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/405/comments","events_url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/405/events","html_url":"https://github.com/JamesNK/Newtonsoft.Json/issues/405","id":46853039,"number":405,"title":"MetadataTypeAttribute ignored in latest version","user":{"login":"georgemak","id":4598501,"avatar_url":"https://avatars.githubusercontent.com/u/4598501?v=3","gravatar_id":"","url":"https://api.github.com/users/georgemak","html_url":"https://github.com/georgemak","followers_url":"https://api.github.com/users/georgemak/followers","following_url":"https://api.github.com/users/georgemak/following{/other_user}","gists_url":"https://api.github.com/users/georgemak/gists{/gist_id}","starred_url":"https://api.github.com/users/georgemak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgemak/subscriptions","organizations_url":"https://api.github.com/users/georgemak/orgs","repos_url":"https://api.github.com/users/georgemak/repos","events_url":"https://api.github.com/users/georgemak/events{/privacy}","received_events_url":"https://api.github.com/users/georgemak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2014-10-26T20:07:48Z","updated_at":"2015-01-26T08:34:28Z","closed_at":"2015-01-26T08:24:15Z","body":"I am not really sure if this is a bug or the functionality has changed in the latest versions but after updating a web api project from Newtonsoft.Json version 4.5.11 to version 6.0.6 I discovered that the annotations were actually ignored and the serialization occured even for the properties that were annotated as JsonIgnore. \r\n\r\nIn order to annotate the objects I use buddy classes:\r\n\r\n    [MetadataType(typeof(CustomerValidation))]\r\n    public partial class Customer\r\n    {\r\n    \r\n    public class CustomerValidation\r\n    {\r\n        [JsonIgnore]\r\n        public System.Guid UpdatedBy_Id { get; set; }\r\n    }\r\n    }\r\n\r\nIf this is not a bug, how can the same functionality be accomplished in the latest version?"},"comment":{"url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/comments/71427950","html_url":"https://github.com/JamesNK/Newtonsoft.Json/issues/405#issuecomment-71427950","issue_url":"https://api.github.com/repos/JamesNK/Newtonsoft.Json/issues/405","id":71427950,"user":{"login":"Paulskit","id":9947675,"avatar_url":"https://avatars.githubusercontent.com/u/9947675?v=3","gravatar_id":"","url":"https://api.github.com/users/Paulskit","html_url":"https://github.com/Paulskit","followers_url":"https://api.github.com/users/Paulskit/followers","following_url":"https://api.github.com/users/Paulskit/following{/other_user}","gists_url":"https://api.github.com/users/Paulskit/gists{/gist_id}","starred_url":"https://api.github.com/users/Paulskit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paulskit/subscriptions","organizations_url":"https://api.github.com/users/Paulskit/orgs","repos_url":"https://api.github.com/users/Paulskit/repos","events_url":"https://api.github.com/users/Paulskit/events{/privacy}","received_events_url":"https://api.github.com/users/Paulskit/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T08:34:28Z","updated_at":"2015-01-26T08:34:28Z","body":"Sorry for delay. Yes, issue is fixed for my scenario. Thanks."}}