{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/4842","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842/events","html_url":"https://github.com/aspnet/Mvc/issues/4842","id":159528196,"number":4842,"title":"[Discussion] MVC now serializes JSON with camel case names by default","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/discussion","name":"discussion","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/18","html_url":"https://github.com/aspnet/Mvc/milestones/Discussions","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/18/labels","id":1254581,"number":18,"title":"Discussions","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":4,"state":"open","created_at":"2015-08-14T02:04:42Z","updated_at":"2016-06-10T00:37:32Z","due_on":null,"closed_at":null},"comments":85,"created_at":"2016-06-09T23:06:18Z","updated_at":"2016-06-14T18:40:10Z","closed_at":null,"body":"In previous milestones, MVC's JSON serialization used Json.NET's default naming convention. This maintained C# property names in the JSON.\r\n\r\nIn 1.0.0, MVC uses camel case names by default. This matches most JSON naming conventions.\r\n\r\n##### Potential compatibility breaks\r\nApplications which depend on the exact bytes sent over the wire or that include code such as\r\n``` c#\r\ndynamic d = JObject.Parse(body);\r\n```\r\nmay need to be adjusted.\r\n\r\n###### To restore previous naming strategy\r\nIf you have case-sensitive clients that cannot be easily updated, change your `Startup` from\r\n``` c#\r\n    services.AddMvc();\r\n```\r\nto\r\n``` c#\r\n    services\r\n        .AddMvc()\r\n        .AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());\r\n```\r\n\r\n##### Example\r\n###### Before\r\n``` c#\r\npublic class Person\r\n{\r\n    public int Id { get; set; }\r\n\r\n    public string FullName { get; set; }\r\n}\r\n```\r\nWould serialize to\r\n``` json\r\n{\"Id\":9000,\"FullName\":\"John Smith\"}\r\n```\r\n\r\n###### After\r\nThe same model will serialize to\r\n``` json\r\n{\"id\":9000,\"fullName\":\"John Smith\"}\r\n```\r\nNote the initial lowercase letters."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/225976495","html_url":"https://github.com/aspnet/Mvc/issues/4842#issuecomment-225976495","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/4842","id":225976495,"user":{"login":"MaximRouiller","id":209384,"avatar_url":"https://avatars.githubusercontent.com/u/209384?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximRouiller","html_url":"https://github.com/MaximRouiller","followers_url":"https://api.github.com/users/MaximRouiller/followers","following_url":"https://api.github.com/users/MaximRouiller/following{/other_user}","gists_url":"https://api.github.com/users/MaximRouiller/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximRouiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximRouiller/subscriptions","organizations_url":"https://api.github.com/users/MaximRouiller/orgs","repos_url":"https://api.github.com/users/MaximRouiller/repos","events_url":"https://api.github.com/users/MaximRouiller/events{/privacy}","received_events_url":"https://api.github.com/users/MaximRouiller/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T18:40:10Z","updated_at":"2016-06-14T18:40:10Z","body":"@Mike-EEE \r\n\r\nThen you get to the problem where it's decision by committee where the committee might not even contribute (or be able to). \r\n\r\nIf you exclude design by committee, you end up with a repo that is used for asking if it breaks anyone and you don't need a repo for this. It will always break someone. In any scenario, I'll trust the team until they go crazy. Then, I'll speak. I don't have time for anything else."}}
{"actor":{"display_login":"MaximRouiller"}}